[Feature-10604] Task name in the copied and imported workflow without copy suffix (#10607)

* fix

* remove imported task suffix
This commit is contained in:
zhuxt2015 2022-07-26 15:21:33 +08:00 committed by GitHub
parent c7789bf049
commit 5ebd53893c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {