Browse Source

撤回项目保存至草稿箱

master
CMM 1 year ago
parent
commit
65fc47fd3a
1 changed files with 14 additions and 4 deletions
  1. +14
    -4
      pmapi/src/main/java/com/ningdatech/pmapi/todocenter/manage/TodoCenterManage.java

+ 14
- 4
pmapi/src/main/java/com/ningdatech/pmapi/todocenter/manage/TodoCenterManage.java View File

@@ -12,6 +12,8 @@ import java.util.stream.Collectors;


import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;


import com.ningdatech.pmapi.projectdeclared.manage.DeclaredProjectManage;
import com.ningdatech.pmapi.projectdeclared.model.dto.ProjectDraftSaveDTO;
import com.ningdatech.pmapi.user.security.auth.model.UserInfoDetails; import com.ningdatech.pmapi.user.security.auth.model.UserInfoDetails;
import com.wflow.workflow.enums.ProcessStatusEnum; import com.wflow.workflow.enums.ProcessStatusEnum;
import org.apache.commons.io.FileUtils; import org.apache.commons.io.FileUtils;
@@ -144,6 +146,7 @@ public class TodoCenterManage {
private final ICompanySignatureService companySignatureService; private final ICompanySignatureService companySignatureService;
private final StatisticsService statisticsService; private final StatisticsService statisticsService;
private final INotifyService notifyService; private final INotifyService notifyService;
private final DeclaredProjectManage declaredProjectManage;


/** /**
* 待办中心待我处理项目列表查询 * 待办中心待我处理项目列表查询
@@ -437,13 +440,20 @@ public class TodoCenterManage {
switch (Objects.requireNonNull(ProjectStatusEnum.getValue(projectStatus))) { switch (Objects.requireNonNull(ProjectStatusEnum.getValue(projectStatus))) {
// 当前项目状态是单位内部审核中 // 当前项目状态是单位内部审核中
case UNDER_INTERNAL_AUDIT: case UNDER_INTERNAL_AUDIT:
// 当前项目状态是预审中
// 更新项目状态为待申报
updateWithdrawProjectStatus(user.getUserId(), declaredProject);
// 保存到草稿箱中
ProjectDraftSaveDTO draftSaveDto = new ProjectDraftSaveDTO();
BeanUtils.copyProperties(declaredProject,draftSaveDto);
declaredProjectManage.saveToDraft(draftSaveDto);
break;
// 当前项目状态是预审中
case PRE_APPLYING: case PRE_APPLYING:
// 当前项目状态是部门联审中
// 当前项目状态是部门联审中
case DEPARTMENT_JOINT_REVIEW: case DEPARTMENT_JOINT_REVIEW:
// 当前项目状态是方案评审中
// 当前项目状态是方案评审中
case SCHEME_UNDER_REVIEW: case SCHEME_UNDER_REVIEW:
// 当前项目状态是终验审核中
// 当前项目状态是终验审核中
case FINAL_ACCEPTANCE_IS_UNDER_REVIEW: case FINAL_ACCEPTANCE_IS_UNDER_REVIEW:
updateWithdrawProjectStatus(user.getUserId(), declaredProject); updateWithdrawProjectStatus(user.getUserId(), declaredProject);
break; break;


Loading…
Cancel
Save