修复了修改task项的bug
parent
056a5ee8f7
commit
f9ab646e23
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue