浏览代码

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

tags/24080901
CMM 1年前
父节点
当前提交
04dfc0bffc
共有 1 个文件被更改,包括 4 次插入2 次删除
  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 查看文件

@@ -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());
}


正在加载...
取消
保存