|
|
@@ -71,10 +71,15 @@ public class FosterwxCashScheduleTaskListController extends BaseController<Foste
|
|
|
Arrays.asList(handle.getIds().split(REGEX)).forEach(id -> fosterwxCashScheduleTaskListService.cancelTask(Integer.valueOf(id), user.getId()));
|
|
|
} else {
|
|
|
Arrays.asList(handle.getIds().split(REGEX)).forEach(id -> {
|
|
|
- FosterwxCashScheduleTaskList fosterwxCashScheduleTaskList = fosterwxCashScheduleTaskListService.getById(id);
|
|
|
- List<FosterwxCashScheduleTaskList> fosterwxCashScheduleTaskListList = fosterwxCashScheduleTaskListService.list(new LambdaQueryWrapper<FosterwxCashScheduleTaskList>().eq(FosterwxCashScheduleTaskList::getTaskId, fosterwxCashScheduleTaskList.getTaskId()));
|
|
|
-
|
|
|
- fosterwxCashScheduleTaskListList.forEach(detail -> fosterwxCashScheduleTaskListService.cancelTask(detail.getId(), user.getId()));
|
|
|
+ // 企微任务列表 页面的取消任务是全部取消 预览页面的取消任务是精准取消
|
|
|
+ if (handle.getIsAllDel() == 1) {
|
|
|
+ FosterwxCashScheduleTaskList fosterwxCashScheduleTaskList = fosterwxCashScheduleTaskListService.getById(id);
|
|
|
+ List<FosterwxCashScheduleTaskList> fosterwxCashScheduleTaskListList = fosterwxCashScheduleTaskListService.list(new LambdaQueryWrapper<FosterwxCashScheduleTaskList>().eq(FosterwxCashScheduleTaskList::getTaskId, fosterwxCashScheduleTaskList.getTaskId()));
|
|
|
+
|
|
|
+ fosterwxCashScheduleTaskListList.forEach(detail -> fosterwxCashScheduleTaskListService.cancelTask(detail.getId(), user.getId()));
|
|
|
+ } else {
|
|
|
+ fosterwxCashScheduleTaskListService.cancelTask(Integer.valueOf(id), user.getId());
|
|
|
+ }
|
|
|
});
|
|
|
}
|
|
|
|