|
|
@ -602,6 +602,10 @@ public class ProcessDefinitionServiceImpl extends BaseServiceImpl implements Pro |
|
|
|
int insertVersion; |
|
|
|
int insertVersion; |
|
|
|
if (processDefinition.equals(processDefinitionDeepCopy)) { |
|
|
|
if (processDefinition.equals(processDefinitionDeepCopy)) { |
|
|
|
insertVersion = processDefinitionDeepCopy.getVersion(); |
|
|
|
insertVersion = processDefinitionDeepCopy.getVersion(); |
|
|
|
|
|
|
|
ProcessDefinitionLog processDefinitionLog = processDefinitionLogMapper.queryByDefinitionCodeAndVersion(processDefinition.getCode(), insertVersion); |
|
|
|
|
|
|
|
processDefinitionLog.setOperator(loginUser.getId()); |
|
|
|
|
|
|
|
processDefinitionLog.setOperateTime(new Date()); |
|
|
|
|
|
|
|
int update = processDefinitionLogMapper.updateById(processDefinitionLog); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
processDefinition.setUpdateTime(new Date()); |
|
|
|
processDefinition.setUpdateTime(new Date()); |
|
|
|
insertVersion = processService.saveProcessDefine(loginUser, processDefinition, Boolean.TRUE, Boolean.TRUE); |
|
|
|
insertVersion = processService.saveProcessDefine(loginUser, processDefinition, Boolean.TRUE, Boolean.TRUE); |
|
|
|