|
|
@@ -445,7 +445,9 @@ public class TodoCenterManage { |
|
|
|
updateWithdrawProjectStatus(user.getUserId(), declaredProject); |
|
|
|
// 保存到草稿箱中 |
|
|
|
ProjectDraftSaveDTO draftSaveDto = new ProjectDraftSaveDTO(); |
|
|
|
BeanUtils.copyProperties(declaredProject,draftSaveDto); |
|
|
|
ProjectDTO projectInfo = new ProjectDTO(); |
|
|
|
BeanUtils.copyProperties(declaredProject,projectInfo); |
|
|
|
draftSaveDto.setProjectInfo(projectInfo); |
|
|
|
declaredProjectManage.saveToDraft(draftSaveDto); |
|
|
|
// 并删除项目库中该项目信息 |
|
|
|
projectService.removeById(declaredProject); |
|
|
@@ -1309,14 +1311,8 @@ public class TodoCenterManage { |
|
|
|
if(!modifyProject(projectDto)){ |
|
|
|
throw new BusinessException("调整项目失败!"); |
|
|
|
} |
|
|
|
|
|
|
|
//最后去审批(通过)当前退回节点的审核任务 |
|
|
|
ReqProcessHandlerDTO handlerDTO = new ReqProcessHandlerDTO(); |
|
|
|
handlerDTO.setProjectId(dto.getProjectId()); |
|
|
|
handlerDTO.setInstanceId(dto.getInstanceId()); |
|
|
|
handlerDTO.setTaskId(dto.getTaskId()); |
|
|
|
handlerDTO.setAction(ProcessHandlerEnum.PASS); |
|
|
|
handler(handlerDTO); |
|
|
|
// 更新当前流程状态为审核中 |
|
|
|
processTaskService.updateProInstStatus(dto.getInstanceId()); |
|
|
|
return dto.getInstanceId(); |
|
|
|
|
|
|
|
} |
|
|
|