Merge remote-tracking branch 'origin/master'

master
ArgonarioD 2022-07-13 00:34:25 +08:00
commit 9d4c54eb06
1 changed files with 3 additions and 0 deletions

View File

@ -345,6 +345,9 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task> implements IT
if (typeChangeValue == 2) { if (typeChangeValue == 2) {
closed = closeTaskAndSubTask(token, task.getTaskProjectId(), task.getTaskId()); 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) { if (!closed && baseMapper.update(task, Wrappers.<Task>lambdaQuery().eq(Task::getTaskId, task.getTaskId())) == 0) {
throw new BadRequestException(BadRequestException.OPERATE_FAILED); throw new BadRequestException(BadRequestException.OPERATE_FAILED);
} }