fix when the task details are not modified, the predecessor node cannot be modified (#13422)
* fix when the task details are not modified, the predecessor node cannot be modified * deleted useless code Co-authored-by: fanwanlong <fanwanlong@kezaihui.com>
This commit is contained in:
parent
7b24efb715
commit
96601fef4c
|
|
@ -573,9 +573,6 @@ public class TaskDefinitionServiceImpl extends BaseServiceImpl implements TaskDe
|
|||
Map<String, Object> result = new HashMap<>();
|
||||
TaskDefinitionLog taskDefinitionToUpdate =
|
||||
updateTask(loginUser, projectCode, taskCode, taskDefinitionJsonObj, result);
|
||||
if (result.get(Constants.STATUS) != Status.SUCCESS && taskDefinitionToUpdate == null) {
|
||||
return result;
|
||||
}
|
||||
List<ProcessTaskRelation> upstreamTaskRelations =
|
||||
processTaskRelationMapper.queryUpstreamByCode(projectCode, taskCode);
|
||||
Set<Long> upstreamCodeSet =
|
||||
|
|
@ -588,10 +585,6 @@ public class TaskDefinitionServiceImpl extends BaseServiceImpl implements TaskDe
|
|||
if (CollectionUtils.isEqualCollection(upstreamCodeSet, upstreamTaskCodes) && taskDefinitionToUpdate == null) {
|
||||
putMsg(result, Status.SUCCESS);
|
||||
return result;
|
||||
} else {
|
||||
if (taskDefinitionToUpdate == null) {
|
||||
taskDefinitionToUpdate = JSONUtils.parseObject(taskDefinitionJsonObj, TaskDefinitionLog.class);
|
||||
}
|
||||
}
|
||||
Map<Long, TaskDefinition> queryUpStreamTaskCodeMap;
|
||||
if (CollectionUtils.isNotEmpty(upstreamTaskCodes)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue