|
@@ -6,8 +6,10 @@ import io.swagger.annotations.ApiOperation;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.jeecg.common.api.vo.Result;
|
|
import org.jeecg.common.api.vo.Result;
|
|
|
|
|
+import org.jeecg.modules.smscheck.entity.SmsLotCustomerData;
|
|
|
import org.jeecg.modules.smscheck.entity.SmsWarningCheckCustomerDataLog;
|
|
import org.jeecg.modules.smscheck.entity.SmsWarningCheckCustomerDataLog;
|
|
|
import org.jeecg.modules.smscheck.entity.SmsWarningCustomerData;
|
|
import org.jeecg.modules.smscheck.entity.SmsWarningCustomerData;
|
|
|
|
|
+import org.jeecg.modules.smscheck.service.SmsLotCustomerService;
|
|
|
import org.jeecg.modules.smscheck.service.SmsWarningCheckCustomerDataLogService;
|
|
import org.jeecg.modules.smscheck.service.SmsWarningCheckCustomerDataLogService;
|
|
|
import org.jeecg.modules.smscheck.service.SmsWarningCustomerDataService;
|
|
import org.jeecg.modules.smscheck.service.SmsWarningCustomerDataService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -22,6 +24,8 @@ public class SmsWarningCustomerController {
|
|
|
SmsWarningCustomerDataService smsWarningCustomerDataService;
|
|
SmsWarningCustomerDataService smsWarningCustomerDataService;
|
|
|
@Autowired
|
|
@Autowired
|
|
|
SmsWarningCheckCustomerDataLogService smsWarningCheckCustomerDataLogService;
|
|
SmsWarningCheckCustomerDataLogService smsWarningCheckCustomerDataLogService;
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ SmsLotCustomerService smsLotCustomerService;
|
|
|
|
|
|
|
|
@ApiOperation(value = "稽核预警-物联网提交", notes = "稽核预警-物联网提交")
|
|
@ApiOperation(value = "稽核预警-物联网提交", notes = "稽核预警-物联网提交")
|
|
|
@PostMapping(value = "/lot/edit/data")
|
|
@PostMapping(value = "/lot/edit/data")
|
|
@@ -84,6 +88,18 @@ public class SmsWarningCustomerController {
|
|
|
if (!audit){
|
|
if (!audit){
|
|
|
return Result.error("稽核失败,请检查资料信息");
|
|
return Result.error("稽核失败,请检查资料信息");
|
|
|
}
|
|
}
|
|
|
|
|
+ LambdaQueryWrapper<SmsWarningCustomerData> dataLambdaQueryWrapper = new LambdaQueryWrapper<>();
|
|
|
|
|
+ dataLambdaQueryWrapper.eq(SmsWarningCustomerData::getDueId,dueId);
|
|
|
|
|
+ SmsWarningCustomerData data = smsWarningCustomerDataService.getOne(dataLambdaQueryWrapper);
|
|
|
|
|
+ String lotContract = data.getLotContract();
|
|
|
|
|
+ if (StringUtils.isNotBlank(lotContract)){
|
|
|
|
|
+ LambdaQueryWrapper<SmsLotCustomerData> smsLotCustomerDataLambdaQueryWrapper = new LambdaQueryWrapper<>();
|
|
|
|
|
+ smsLotCustomerDataLambdaQueryWrapper.eq(SmsLotCustomerData::getInfoId,infoId);
|
|
|
|
|
+ SmsLotCustomerData lotCustomerData = new SmsLotCustomerData();
|
|
|
|
|
+ lotCustomerData.setContract(lotCustomerData.getContract()+","+lotContract);
|
|
|
|
|
+ smsLotCustomerService.update(lotCustomerData,smsLotCustomerDataLambdaQueryWrapper);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
return Result.ok("稽核成功");
|
|
return Result.ok("稽核成功");
|
|
|
}
|
|
}
|
|
|
|
|
|