Quellcode durchsuchen

客户名称info

sunyize vor 2 Jahren
Ursprung
Commit
bf3f98f662

+ 5 - 0
tnc-sms/src/main/java/org/jeecg/modules/smscheck/controller/SmsCheckCustomerDataController.java

@@ -129,6 +129,9 @@ public class SmsCheckCustomerDataController extends JeecgController<SmsCheckCust
     public Result<String> add(@RequestBody  JSONObject jsonObject) {
         SmsCheckCustomerData smsCheckCustomerData = JSON.parseObject(jsonObject.toJSONString(), SmsCheckCustomerData.class);
         boolean save = customerDataService.saveOrUpdate(smsCheckCustomerData);
+        this.infoService.update(new SmsCheckCustomerInfo().setCustomerName(smsCheckCustomerData.getCustomerName()),
+                new UpdateWrapper<SmsCheckCustomerInfo>().lambda().eq(SmsCheckCustomerInfo::getId,smsCheckCustomerData.getInfoId()));
+
         if (save){
             // 修改客户状态为     未完善/未上传
             SmsCheckCustomerInfo smsCheckCustomerInfo = new SmsCheckCustomerInfo();
@@ -225,6 +228,8 @@ public class SmsCheckCustomerDataController extends JeecgController<SmsCheckCust
             SmsCheckCustomerInfo smsCheckCustomerInfo = new SmsCheckCustomerInfo();
             /** 稽核状态 0:未处理;1:未完善;2:待稽核;3:已整改;4:待整改;5:稽核通过;  */
             if (byId.getCheckState().equals(CheckStateCode.CHECK_STSTE_4)){
+                this.infoService.update(new SmsCheckCustomerInfo().setCustomerName(smsCheckCustomerDataAndLog.getCustomerName()),
+                        new UpdateWrapper<SmsCheckCustomerInfo>().lambda().eq(SmsCheckCustomerInfo::getId,smsCheckCustomerDataAndLog.getInfoId()));
                 smsCheckCustomerInfo.setCheckState(CheckStateCode.CHECK_STSTE_2);
             }else {
                 if (mapByResult.isEmpty()){

+ 5 - 0
tnc-sms/src/main/java/org/jeecg/modules/smscheck/controller/SmsLotCustomerController.java

@@ -5,6 +5,7 @@ import com.alibaba.fastjson.JSON;
 import com.alibaba.fastjson.JSONArray;
 import com.alibaba.fastjson.JSONObject;
 import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
+import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
 import com.baomidou.mybatisplus.core.toolkit.StringUtils;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
@@ -70,6 +71,8 @@ public class SmsLotCustomerController extends JeecgController<SmsLotCustomerData
     public Result<String> add(@RequestBody JSONObject jsonObject) {
         SmsLotCustomerData lotCustomerData = JSON.parseObject(jsonObject.toJSONString(), SmsLotCustomerData.class);
         boolean save = lotCustomerService.saveOrUpdate(lotCustomerData);
+        this.infoService.update(new SmsCheckCustomerInfo().setCustomerName(lotCustomerData.getCustomerName()),
+                new UpdateWrapper<SmsCheckCustomerInfo>().lambda().eq(SmsCheckCustomerInfo::getId,lotCustomerData.getInfoId()));
         if (save){
             // 修改客户状态为     未完善/未上传
             SmsCheckCustomerInfo smsCheckCustomerInfo = new SmsCheckCustomerInfo();
@@ -202,6 +205,8 @@ public class SmsLotCustomerController extends JeecgController<SmsLotCustomerData
             SmsCheckCustomerInfo smsCheckCustomerInfo = new SmsCheckCustomerInfo();
             /** 稽核状态 0:未处理;1:未完善;2:待稽核;3:已整改;4:待整改;5:稽核通过;  */
             if (byId.getCheckState().equals(CheckStateCode.CHECK_STSTE_4)){
+                this.infoService.update(new SmsCheckCustomerInfo().setCustomerName(lotCheckCustomerDataAndLog.getCustomerName()),
+                        new UpdateWrapper<SmsCheckCustomerInfo>().lambda().eq(SmsCheckCustomerInfo::getId,lotCheckCustomerDataAndLog.getInfoId()));
                 smsCheckCustomerInfo.setCheckState(CheckStateCode.CHECK_STSTE_2);
             }else {
                 if (mapByResult.isEmpty()){

+ 5 - 0
tnc-sms/src/main/java/org/jeecg/modules/smscheck/controller/SmsTruckCustomerDataController.java

@@ -5,6 +5,7 @@ import com.alibaba.fastjson.JSON;
 import com.alibaba.fastjson.JSONArray;
 import com.alibaba.fastjson.JSONObject;
 import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
+import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
 import com.baomidou.mybatisplus.core.toolkit.StringUtils;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
@@ -266,6 +267,8 @@ public class SmsTruckCustomerDataController  extends JeecgController<SmsTruckCus
             SmsCheckCustomerInfo smsCheckCustomerInfo = new SmsCheckCustomerInfo();
             /** 稽核状态 0:未处理;1:未完善;2:待稽核;3:已整改;4:待整改;5:稽核通过;  */
             if (byId.getCheckState().equals(CheckStateCode.CHECK_STSTE_4)){
+                this.infoService.update(new SmsCheckCustomerInfo().setCustomerName(smsTruckCheckCustomerDataAndLog.getCustomerName()),
+                        new UpdateWrapper<SmsCheckCustomerInfo>().lambda().eq(SmsCheckCustomerInfo::getId,smsTruckCheckCustomerDataAndLog.getInfoId()));
                 smsCheckCustomerInfo.setCheckState(CheckStateCode.CHECK_STSTE_2);
             }else {
                 if (mapByResult.isEmpty()){
@@ -512,6 +515,8 @@ public class SmsTruckCustomerDataController  extends JeecgController<SmsTruckCus
     public Result<String> add(@RequestBody JSONObject jsonObject) {
         SmsTruckCustomerData truckCustomerData = JSON.parseObject(jsonObject.toJSONString(), SmsTruckCustomerData.class);
         boolean save = smsTruckCustomerDataService.saveOrUpdate(truckCustomerData);
+        this.infoService.update(new SmsCheckCustomerInfo().setCustomerName(truckCustomerData.getCustomerName()),
+                new UpdateWrapper<SmsCheckCustomerInfo>().lambda().eq(SmsCheckCustomerInfo::getId,truckCustomerData.getInfoId()));
         if (save){
             // 修改客户状态为     未完善/未上传
             SmsCheckCustomerInfo smsCheckCustomerInfo = new SmsCheckCustomerInfo();