mirror of
https://gitee.com/dolphinscheduler/DolphinScheduler.git
synced 2024-12-02 20:28:03 +08:00
[Feature-10604] Task name in the copied and imported workflow without copy suffix (#10607)
* fix * remove imported task suffix
This commit is contained in:
parent
c7789bf049
commit
5ebd53893c
@ -1232,7 +1232,7 @@ public class ProcessDefinitionServiceImpl extends BaseServiceImpl implements Pro
|
||||
List<TaskDefinitionLog> taskDefinitionLogList = new ArrayList<>();
|
||||
for (TaskDefinition taskDefinition : taskDefinitionList) {
|
||||
TaskDefinitionLog taskDefinitionLog = new TaskDefinitionLog(taskDefinition);
|
||||
taskDefinitionLog.setName(taskDefinitionLog.getName() + "_import_" + DateUtils.getCurrentTimeStamp());
|
||||
taskDefinitionLog.setName(taskDefinitionLog.getName());
|
||||
taskDefinitionLog.setProjectCode(projectCode);
|
||||
taskDefinitionLog.setUserId(loginUser.getId());
|
||||
taskDefinitionLog.setVersion(Constants.VERSION_FIRST);
|
||||
@ -1824,7 +1824,7 @@ public class ProcessDefinitionServiceImpl extends BaseServiceImpl implements Pro
|
||||
}
|
||||
taskDefinitionLog.setProjectCode(targetProjectCode);
|
||||
taskDefinitionLog.setVersion(0);
|
||||
taskDefinitionLog.setName(taskDefinitionLog.getName() + "_copy_" + DateUtils.getCurrentTimeStamp());
|
||||
taskDefinitionLog.setName(taskDefinitionLog.getName());
|
||||
}
|
||||
for (ProcessTaskRelationLog processTaskRelationLog : taskRelationList) {
|
||||
if (processTaskRelationLog.getPreTaskCode() > 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user