Explorar el Código

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

tags/24080901
CMM hace 1 año
padre
commit
04dfc0bffc
Se han modificado 1 ficheros con 4 adiciones y 2 borrados
  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 Ver fichero

@@ -30,7 +30,9 @@ public class ProjectDeclareChoiceAction implements Action<ProjectStatusEnum, Pro
break;
case PREQUALIFICATION_WITHDRAW_CHOICE:
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);
log.info("预审申报事件之前,项目的状态为:{}"+project.getStatus());
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 {
project.setStatus(ProjectStatusEnum.PRE_APPLYING.getCode());
}


Cargando…
Cancelar
Guardar