mirror of
https://gitee.com/dolphinscheduler/DolphinScheduler.git
synced 2024-12-04 21:28:00 +08:00
Co-authored-by: honghuo.zw <honghuo.zw@alibaba-inc.com> Co-authored-by: Kirs <acm_master@163.com>
This commit is contained in:
parent
1160b53940
commit
94352a4f5f
@ -282,10 +282,11 @@ public class TaskDefinitionServiceImpl extends BaseServiceImpl implements TaskDe
|
||||
putMsg(result, Status.TASK_DEFINE_NOT_EXIST, taskCode);
|
||||
return result;
|
||||
}
|
||||
TaskDefinitionLog taskDefinitionLog = taskDefinitionLogMapper.queryByDefinitionCodeAndVersion(taskCode, version);
|
||||
taskDefinitionLog.setUserId(loginUser.getId());
|
||||
taskDefinitionLog.setUpdateTime(new Date());
|
||||
int switchVersion = taskDefinitionMapper.updateById(taskDefinitionLog);
|
||||
TaskDefinitionLog taskDefinitionUpdate = taskDefinitionLogMapper.queryByDefinitionCodeAndVersion(taskCode, version);
|
||||
taskDefinitionUpdate.setUserId(loginUser.getId());
|
||||
taskDefinitionUpdate.setUpdateTime(new Date());
|
||||
taskDefinitionUpdate.setId(taskDefinition.getId());
|
||||
int switchVersion = taskDefinitionMapper.updateById(taskDefinitionUpdate);
|
||||
if (switchVersion > 0) {
|
||||
result.put(Constants.DATA_LIST, taskCode);
|
||||
putMsg(result, Status.SUCCESS);
|
||||
|
Loading…
Reference in New Issue
Block a user