Browse Source

Fix schedule time data primary key conflict when importing workflow definition (#13926)

3.2.0-release
Kerwin 2 years ago committed by GitHub
parent
commit
51afbfe159
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ProcessDefinitionServiceImpl.java

1
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ProcessDefinitionServiceImpl.java

@ -1651,6 +1651,7 @@ public class ProcessDefinitionServiceImpl extends BaseServiceImpl implements Pro
if (null != schedule) {
ProcessDefinition newProcessDefinition = processDefinitionMapper.queryByCode(processDefinition.getCode());
schedule.setProcessDefinitionCode(newProcessDefinition.getCode());
schedule.setId(null);
schedule.setUserId(loginUser.getId());
schedule.setCreateTime(now);
schedule.setUpdateTime(now);

Loading…
Cancel
Save