From 42441fa44931212ce3917636b96ed08d594beef9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E6=98=8E=E6=A2=81?= <2429105222@qq.com> Date: Fri, 14 Apr 2023 14:05:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BE=9B=E5=BA=94=E5=95=86=E7=89=A9=E8=B4=A8?= =?UTF-8?q?=E7=94=B3=E8=AF=B7=E5=AE=A1=E6=A0=B8=E9=97=AE=E9=A2=98=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/thrsys/ThrProductsAddDiController.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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("更新成功"); }