zjy vor 3 Monaten
Ursprung
Commit
fe058791ae

+ 5 - 1
alien-entity/src/main/java/shop/alien/entity/store/LifeUserViolation.java

@@ -107,7 +107,7 @@ public class LifeUserViolation extends Model<LifeUserViolation> {
     @TableField(value = "report_result")
     private String reportResult;
 
-    @ApiModelProperty(value = "业务ID")
+    @ApiModelProperty(value = "商品备份ID")
     @TableField(value = "business_id")
     private Integer businessId;
 
@@ -123,6 +123,10 @@ public class LifeUserViolation extends Model<LifeUserViolation> {
     @TableField(value = "video_first_frame")
     private String videoFirstFrame;
 
+    @ApiModelProperty(value = "商品ID")
+    @TableField(value = "goods_id")
+    private Integer goodsId;
+
     @Override
     protected Serializable pkVal() {
         return this.id;

+ 1 - 0
alien-second/src/main/java/shop/alien/second/service/impl/SecondGoodsReportingServiceImpl.java

@@ -183,6 +183,7 @@ public class SecondGoodsReportingServiceImpl implements SecondGoodsReportingServ
     public int reporting(SecondUserViolationVo lifeuserViolation) throws Exception  {
         try {
             if ("4".equals(lifeuserViolation.getReportContextType())) {
+                lifeuserViolation.setGoodsId(lifeuserViolation.getBusinessId());
                 LambdaQueryWrapper<SecondGoodsRecord> goodsWrapper = new LambdaQueryWrapper<>();
                 goodsWrapper.eq(SecondGoodsRecord::getGoodsId, lifeuserViolation.getBusinessId());
                 goodsWrapper.eq(SecondGoodsRecord::getGoodsStatus, "3");