diff --git a/src/main/java/com/glxp/api/controller/thrsys/ThrProductsAddDiController.java b/src/main/java/com/glxp/api/controller/thrsys/ThrProductsAddDiController.java index 920353ee..fea2c921 100644 --- a/src/main/java/com/glxp/api/controller/thrsys/ThrProductsAddDiController.java +++ b/src/main/java/com/glxp/api/controller/thrsys/ThrProductsAddDiController.java @@ -173,14 +173,16 @@ public class ThrProductsAddDiController { return ResultVOUtils.error(ResultEnum.PARAM_VERIFY_FALL, bindingResult.getFieldError().getDefaultMessage()); } - + Integer status=thrProductsAddDiEntity.getStatus(); + thrProductsAddDiEntity.setAuditTime(new Date()); + thrProductsAddDiEntity.setAuditUser(customerService.getUserId() + ""); thrProductsAddDiEntity = thrProductsAddDiService.selecById(thrProductsAddDiEntity.getId()); //自增的数据就再到第三方产品里面 ThrProductsAddDiResponse thrProductsAddDiResponse = thrProductsAddDiService.selecById(thrProductsAddDiEntity.getId()); - if (thrProductsAddDiEntity.getStatus() == 2) { //审核通过 + if (status == 2) { //审核通过 //第三方产品审核通过 if (thrProductsAddDiEntity.getType() == 2) { ThrProductsEntity thrProductsEntity = new ThrProductsEntity(); @@ -253,10 +255,7 @@ public class ThrProductsAddDiController { } } - thrProductsAddDiEntity.setAuditTime(new Date()); - thrProductsAddDiEntity.setAuditUser(customerService.getUserId() + ""); thrProductsAddDiService.updateDiProduct(thrProductsAddDiEntity); - } return ResultVOUtils.success("更新成功"); }