Просмотр исходного кода

Merge remote-tracking branch 'origin/master'

tags/24080901
PoffyZhang 1 год назад
Родитель
Сommit
bab9a67e16
3 измененных файлов: 4 добавлений и 4 удалений
  1. +1
    -1
      pmapi/src/main/java/com/ningdatech/pmapi/common/statemachine/action/ProjectDeclareChoiceAction.java
  2. +1
    -1
      pmapi/src/main/java/com/ningdatech/pmapi/common/statemachine/factory/ProjectDeclareGuardFactory.java
  3. +2
    -2
      pmapi/src/main/java/com/ningdatech/pmapi/common/statemachine/util/StateMachineUtils.java

+ 1
- 1
pmapi/src/main/java/com/ningdatech/pmapi/common/statemachine/action/ProjectDeclareChoiceAction.java Просмотреть файл

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


+ 1
- 1
pmapi/src/main/java/com/ningdatech/pmapi/common/statemachine/factory/ProjectDeclareGuardFactory.java Просмотреть файл

@@ -24,7 +24,7 @@ public class ProjectDeclareGuardFactory {
public boolean evaluate(StateContext<ProjectStatusEnum, ProjectStatusChangeEvent> context) {
Project project = context.getMessage().getHeaders().get(PROJECT_DECLARE, Project.class);
// 判断申报项目是否是市级项目,且申报金额是否大于等于1000万元
if (StateMachineUtils.isCityProject(project) && StateMachineUtils.JudgeDeclareAmount(project)){
if (StateMachineUtils.isCityProject(project) && StateMachineUtils.judgeDeclareAmount(project)){
return true;
}
return false;


+ 2
- 2
pmapi/src/main/java/com/ningdatech/pmapi/common/statemachine/util/StateMachineUtils.java Просмотреть файл

@@ -46,13 +46,13 @@ public class StateMachineUtils {
}

/**
* 判断
* 判断项目申报金额是否大于1000万元
* @param project
* @return boolean
* @author CMM
* @since 2023/02/07 17:13
*/
public static boolean JudgeDeclareAmount(Project project) {
public static boolean judgeDeclareAmount(Project project) {
int flag = project.getDeclareAmount().compareTo(ProjectDeclareConstants.Number.DECLARE_AMOUNT_JUDGEMENT);
if (flag > 0 || flag == 0){
return true;


Загрузка…
Отмена
Сохранить