Skip to content

Commit

Permalink
Merge pull request #684 from hyperleoon/fix_issue682
Browse files Browse the repository at this point in the history
[issue_682][taier-data-develop] fix #682  remove task dependencies
  • Loading branch information
vainhope authored Aug 6, 2022
2 parents 2bc3780 + 4329f1d commit 04b08ce
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 04b08ce

Please sign in to comment.