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());