Skip to content

Commit

Permalink
[issue_682][taier-data-develop] fix #682 remove task dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperleoon committed Aug 5, 2022
1 parent 7d02671 commit 4329f1d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ public class DevelopTaskTaskService extends ServiceImpl<DevelopTaskTaskMapper, D

@Transactional(rollbackFor = Exception.class)
public void addOrUpdateTaskTask(Long taskId, List<TaskVO> dependencyTasks) {
this.remove(Wrappers.lambdaQuery(DevelopTaskTask.class)
.eq(DevelopTaskTask::getTaskId, taskId));

if (CollectionUtils.isEmpty(dependencyTasks)) {
return;
}

this.remove(Wrappers.lambdaQuery(DevelopTaskTask.class)
.eq(DevelopTaskTask::getTaskId, taskId));

List<DevelopTaskTask> taskTaskList = dependencyTasks.stream().map(taskVO -> {
DevelopTaskTask taskTask = new DevelopTaskTask();
taskTask.setParentTaskId(taskVO.getId());
Expand Down

0 comments on commit 4329f1d

Please sign in to comment.