Commit d14cb2fd authored by wanglong's avatar wanglong

添加当无任务表时 直接返回

parent 205f6fda
......@@ -101,6 +101,9 @@ public class TaskServiceImpl extends BaseService<TaskDto, Task, TaskMapper> impl
.eq(Task::getSourceId, sourceId)
.eq(Task::getUnitId, unitId);
task = this.getOne(wrapper);
if(ValidationUtil.isEmpty(task)){
return;
}
task.setStatusLabel(TaskTypeEnum.已办.getName());
taskStatus = "已完成";
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment