[Bug] [Api] The copied workflow create time and update time is still copied from the original workflow

This commit is contained in:
zhuxt2015 2022-06-28 21:33:58 +08:00 committed by GitHub
parent 35b25da863
commit 5ebd982e92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1788,6 +1788,9 @@ public class ProcessDefinitionServiceImpl extends BaseServiceImpl implements Pro
processDefinition.setId(0);
processDefinition.setUserId(loginUser.getId());
processDefinition.setName(processDefinition.getName() + "_copy_" + DateUtils.getCurrentTimeStamp());
final Date date = new Date();
processDefinition.setCreateTime(date);
processDefinition.setUpdateTime(date);
if (StringUtils.isNotBlank(processDefinition.getLocations())) {
ArrayNode jsonNodes = JSONUtils.parseArray(processDefinition.getLocations());
for (int i = 0; i < jsonNodes.size(); i++) {