|
@@ -204,6 +204,7 @@ public class TaskController {
|
|
|
WxCorpInfo wxCorpInfo = wxCorpInfoService.getOne(new QueryWrapper<WxCorpInfo>().eq("company_id", user.getCompanyId()));
|
|
|
int isInsert=0;
|
|
|
boolean shouldResetAuditStatus = false;
|
|
|
+ boolean shouldUpdatetaskDailyAllocate = false;
|
|
|
List<TaskType> typeList = taskTypeMapper.selectList(new QueryWrapper<TaskType>().eq("company_id", user.getCompanyId()));
|
|
|
TaskType taskType = typeList.stream().filter(t->t.getId()==task.getTaskPlanType()).findAny().orElse(null);
|
|
|
if (taskType == null){
|
|
@@ -502,6 +503,9 @@ public class TaskController {
|
|
|
}
|
|
|
|
|
|
}
|
|
|
+ if (task.getTaskStatus()>=2){
|
|
|
+ shouldUpdatetaskDailyAllocate=true;
|
|
|
+ }
|
|
|
boolean saved = taskService.saveOrUpdate(task);
|
|
|
//新增成功,给第一审核人发送信息提醒
|
|
|
if (saved&&isInsert==1){
|
|
@@ -531,7 +535,8 @@ public class TaskController {
|
|
|
allocateArrayList.forEach(a->a.setTaskId(task.getId()));
|
|
|
taskDailyAllocateService.saveBatch(allocateArrayList);
|
|
|
}
|
|
|
- } else if (saved && shouldResetAuditStatus) {
|
|
|
+ }
|
|
|
+ else if (saved && shouldResetAuditStatus) {
|
|
|
msgRecepientList=new ArrayList<>();
|
|
|
//给第一审核人发送信息提醒
|
|
|
log.info("撤销/驳回后小组长修改,给第一审核人发送信息提醒");
|
|
@@ -556,6 +561,11 @@ public class TaskController {
|
|
|
taskDailyAllocateService.remove(new QueryWrapper<TaskDailyAllocate>().eq("task_id",task.getId()));
|
|
|
taskDailyAllocateService.saveBatch(allocateArrayList);
|
|
|
}
|
|
|
+ } else if (saved&&shouldUpdatetaskDailyAllocate) {
|
|
|
+ if (!allocateArrayList.isEmpty()) {
|
|
|
+ taskDailyAllocateService.remove(new QueryWrapper<TaskDailyAllocate>().eq("task_id",task.getId()));
|
|
|
+ taskDailyAllocateService.saveBatch(allocateArrayList);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
if (task.getExecutorId() == null) {
|