mirror of
https://gitee.com/dolphinscheduler/DolphinScheduler.git
synced 2024-12-02 04:08:31 +08:00
Set the id to null when copying t_ds_schedules (#12280)
Co-authored-by: fanwanlong <fanwanlong@kezaihui.com>
This commit is contained in:
parent
98a8b5383e
commit
18ef0a66cb
@ -2205,6 +2205,7 @@ public class ProcessDefinitionServiceImpl extends BaseServiceImpl implements Pro
|
||||
// copy timing configuration
|
||||
Schedule scheduleObj = scheduleMapper.queryByProcessDefinitionCode(oldProcessDefinitionCode);
|
||||
if (scheduleObj != null) {
|
||||
scheduleObj.setId(null);
|
||||
scheduleObj.setProcessDefinitionCode(processDefinition.getCode());
|
||||
scheduleObj.setReleaseState(ReleaseState.OFFLINE);
|
||||
scheduleObj.setCreateTime(date);
|
||||
|
Loading…
Reference in New Issue
Block a user