diff --git a/dinky-admin/src/main/java/org/dinky/service/impl/CatalogueServiceImpl.java b/dinky-admin/src/main/java/org/dinky/service/impl/CatalogueServiceImpl.java index da7f503ee2..d31bea6e99 100644 --- a/dinky-admin/src/main/java/org/dinky/service/impl/CatalogueServiceImpl.java +++ b/dinky-admin/src/main/java/org/dinky/service/impl/CatalogueServiceImpl.java @@ -291,6 +291,7 @@ public boolean copyTask(Catalogue catalogue) { Task newTask = new Task(); BeanUtil.copyProperties(oldTask, newTask); newTask.setId(null); + newTask.setJobInstanceId(null); newTask.setType(oldTask.getType()); // 设置复制后的作业名称为:原名称+自增序列 size = size + 1;