|
@@ -149,6 +149,7 @@ public class WorkFlowServiceImpl implements WorkFlowService {
|
|
|
public IPage<ProcessDefinitionDTO> selectPage(ProcessDefinition processDefinition, IPage<ProcessDefinitionDTO> iPage) {
|
|
|
LoginUser loginUser = UserUtil.getCurrentUser();
|
|
|
processDefinition.setTenantId(loginUser.getTenantId());
|
|
|
+ processDefinition.setProgramItems(loginUser.getProgramItemList());
|
|
|
//processDefinition.setCompanyOrgId(loginUser.getCompanyId());
|
|
|
IPage<ProcessDefinitionDTO> processDefinitionDTOIPage = processDefinitionMapper.selectPage(iPage, processDefinition);
|
|
|
return processDefinitionDTOIPage;
|
|
@@ -196,6 +197,7 @@ public class WorkFlowServiceImpl implements WorkFlowService {
|
|
|
|
|
|
|
|
|
processDefinition.setUpdateBy(UserUtil.getCurrentUser().getUsername());
|
|
|
+ processDefinition.setProcessStatus("3");
|
|
|
int result = processDefinitionMapper.update(processDefinition);
|
|
|
log.info("end edit ProcessDefinition result=" + result);
|
|
|
}
|
|
@@ -252,7 +254,7 @@ public class WorkFlowServiceImpl implements WorkFlowService {
|
|
|
}
|
|
|
processDef.setId(processId);
|
|
|
processDef.setBpmnContent(content);
|
|
|
- processDef.setProcessStatus("1"); // 保存流程草稿状态
|
|
|
+ processDef.setProcessStatus("3"); // 保存流程草稿状态
|
|
|
ProcessDefinition processDefTemp = processDefinitionMapper.selectById(processId);
|
|
|
processDef.setVersion(processDefTemp.getVersion() + 1);//更新版本号
|
|
|
int result = processDefinitionMapper.update(processDef);
|