From fb4b9270224c3782074d55aa6a0e6322001864b1 Mon Sep 17 00:00:00 2001 From: leon Date: Fri, 5 Aug 2022 23:08:14 +0800 Subject: [PATCH] [issue_682][taier-data-develop] fix #682 remove task dependencies --- .../service/develop/impl/DevelopTaskTaskService.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/taier-data-develop/src/main/java/com/dtstack/taier/develop/service/develop/impl/DevelopTaskTaskService.java b/taier-data-develop/src/main/java/com/dtstack/taier/develop/service/develop/impl/DevelopTaskTaskService.java index d2f0f7b61d..db6dcb56f3 100644 --- a/taier-data-develop/src/main/java/com/dtstack/taier/develop/service/develop/impl/DevelopTaskTaskService.java +++ b/taier-data-develop/src/main/java/com/dtstack/taier/develop/service/develop/impl/DevelopTaskTaskService.java @@ -45,13 +45,13 @@ public class DevelopTaskTaskService extends ServiceImpl 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 taskTaskList = dependencyTasks.stream().map(taskVO -> { DevelopTaskTask taskTask = new DevelopTaskTask(); taskTask.setParentTaskId(taskVO.getId());