Browse Source

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

3.1.6-release
Kerwin 2 years ago committed by zhuangchong
parent
commit
9d303a017b
  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

@ -1429,6 +1429,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