Browse Source

项目预审中撤回状态机修改

tags/24080901
CMM 1 year ago
parent
commit
04dfc0bffc
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      pmapi/src/main/java/com/ningdatech/pmapi/common/statemachine/action/ProjectDeclareChoiceAction.java

+ 4
- 2
pmapi/src/main/java/com/ningdatech/pmapi/common/statemachine/action/ProjectDeclareChoiceAction.java View File

@@ -30,7 +30,9 @@ public class ProjectDeclareChoiceAction implements Action<ProjectStatusEnum, Pro
break; break;
case PREQUALIFICATION_WITHDRAW_CHOICE: case PREQUALIFICATION_WITHDRAW_CHOICE:
preWithDrawChoice(stateContext); preWithDrawChoice(stateContext);

break;
default:
throw new IllegalStateException("Unexpected value: " + projectStatusEnum);
} }
} }


@@ -38,7 +40,7 @@ public class ProjectDeclareChoiceAction implements Action<ProjectStatusEnum, Pro
Project project = stateContext.getMessage().getHeaders().get(PROJECT_DECLARE, Project.class); Project project = stateContext.getMessage().getHeaders().get(PROJECT_DECLARE, Project.class);
log.info("预审申报事件之前,项目的状态为:{}"+project.getStatus()); log.info("预审申报事件之前,项目的状态为:{}"+project.getStatus());
if (StateMachineUtils.isCityProject(project) && StateMachineUtils.judgeDeclareAmount(project)){ if (StateMachineUtils.isCityProject(project) && StateMachineUtils.judgeDeclareAmount(project)){
project.setStatus(ProjectStatusEnum.JOINT_REVIEW_BY_PROVINCIAL_DEPARTMENTS_SUCCESS.getCode());
project.setStatus(ProjectStatusEnum.JOINT_REVIEW_BY_PROVINCIAL_DEPARTMENTS.getCode());
}else { }else {
project.setStatus(ProjectStatusEnum.PRE_APPLYING.getCode()); project.setStatus(ProjectStatusEnum.PRE_APPLYING.getCode());
} }


Loading…
Cancel
Save