|
|
@@ -76,6 +76,8 @@ public class SmsCheckTaskController extends JeecgController<SmsCheckTask, ISmsCh
|
|
|
private DataYearMonthImpl dataYearMonth;
|
|
|
@Autowired
|
|
|
private ISmsCheckCustomerInfoErrorService smsCheckCustomerInfoErrorService;
|
|
|
+ @Autowired
|
|
|
+ ISmsCheckCustomerInfoService iSmsCheckCustomerInfoService;
|
|
|
private static int i=0;
|
|
|
/**
|
|
|
* 分页列表查询
|
|
|
@@ -156,7 +158,14 @@ public class SmsCheckTaskController extends JeecgController<SmsCheckTask, ISmsCh
|
|
|
@ApiOperation(value = "稽核任务-通过id删除", notes = "稽核任务-通过id删除")
|
|
|
@DeleteMapping(value = "/delete")
|
|
|
public Result<String> delete(@RequestParam(name = "id") String id) {
|
|
|
- taskService.removeById(id);
|
|
|
+ boolean removeById = taskService.removeById(id);
|
|
|
+ if (removeById){
|
|
|
+ LambdaQueryWrapper<SmsCheckCustomerInfo> smsCheckCustomerInfoLambdaQueryWrapper = new LambdaQueryWrapper<>();
|
|
|
+ smsCheckCustomerInfoLambdaQueryWrapper.eq(SmsCheckCustomerInfo::getTaskId,id);
|
|
|
+ SmsCheckCustomerInfo smsCheckCustomerInfo = new SmsCheckCustomerInfo();
|
|
|
+ smsCheckCustomerInfo.setDelFlag(1);
|
|
|
+ iSmsCheckCustomerInfoService.update(smsCheckCustomerInfo,smsCheckCustomerInfoLambdaQueryWrapper);
|
|
|
+ }
|
|
|
return Result.OK("删除成功!");
|
|
|
}
|
|
|
|
|
|
@@ -170,7 +179,18 @@ public class SmsCheckTaskController extends JeecgController<SmsCheckTask, ISmsCh
|
|
|
@ApiOperation(value = "稽核任务-批量删除", notes = "稽核任务-批量删除")
|
|
|
@DeleteMapping(value = "/deleteBatch")
|
|
|
public Result<String> deleteBatch(@RequestParam(name = "ids") String ids) {
|
|
|
- this.taskService.removeByIds(Arrays.asList(ids.split(",")));
|
|
|
+ boolean remove = this.taskService.removeByIds(Arrays.asList(ids.split(",")));
|
|
|
+ if (remove){
|
|
|
+ List<String> taskIds = Arrays.asList(ids.split(","));
|
|
|
+ for (String taskId:taskIds){
|
|
|
+ LambdaQueryWrapper<SmsCheckCustomerInfo> smsCheckCustomerInfoLambdaQueryWrapper = new LambdaQueryWrapper<>();
|
|
|
+ smsCheckCustomerInfoLambdaQueryWrapper.eq(SmsCheckCustomerInfo::getTaskId,taskId);
|
|
|
+ SmsCheckCustomerInfo smsCheckCustomerInfo = new SmsCheckCustomerInfo();
|
|
|
+ smsCheckCustomerInfo.setDelFlag(1);
|
|
|
+ iSmsCheckCustomerInfoService.update(smsCheckCustomerInfo,smsCheckCustomerInfoLambdaQueryWrapper);
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
return Result.OK("批量删除成功!");
|
|
|
}
|
|
|
|