修复了修改task项的bug
parent
056a5ee8f7
commit
f9ab646e23
|
@ -345,6 +345,9 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task> implements IT
|
|||
if (typeChangeValue == 2) {
|
||||
closed = closeTaskAndSubTask(token, task.getTaskProjectId(), task.getTaskId());
|
||||
}
|
||||
if (Objects.equals(rawTask, task)) {
|
||||
return task;
|
||||
}
|
||||
if (!closed && baseMapper.update(task, Wrappers.<Task>lambdaQuery().eq(Task::getTaskId, task.getTaskId())) == 0) {
|
||||
throw new BadRequestException(BadRequestException.OPERATE_FAILED);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue