Kaynağa Gözat

修改开启项目申报

master
WendyYang 1 yıl önce
ebeveyn
işleme
1d81fe9c1b
2 değiştirilmiş dosya ile 3 ekleme ve 2 silme
  1. +2
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/projectlib/manage/AnnualPlanLibManage.java
  2. +1
    -2
      pmapi/src/test/java/com/ningdatech/pmapi/statemachine/StateMachineTest.java

+ 2
- 0
pmapi/src/main/java/com/ningdatech/pmapi/projectlib/manage/AnnualPlanLibManage.java Dosyayı Görüntüle

@@ -127,6 +127,7 @@ public class AnnualPlanLibManage {
throw new BizException("开启方案申报失败");
}
});
projectService.updateBatchById(projects);
}

@Transactional(rollbackFor = Exception.class)
@@ -147,6 +148,7 @@ public class AnnualPlanLibManage {
public void suspendAnnualPlan(ProjectIdReq req) throws Exception {
Project project = projectService.getById(req.getProjectId());
stateMachine.execute(project, ProjectStatusChangeEvent.ANNUAL_PLAN_SUSPEND);
projectService.updateById(project);
}

@Transactional(rollbackFor = Exception.class)


+ 1
- 2
pmapi/src/test/java/com/ningdatech/pmapi/statemachine/StateMachineTest.java Dosyayı Görüntüle

@@ -3,10 +3,9 @@ package com.ningdatech.pmapi.statemachine;
import com.alibaba.fastjson.JSON;
import com.ningdatech.pmapi.AppTests;
import com.ningdatech.pmapi.common.statemachine.util.StateMachineUtils;
import com.ningdatech.pmapi.common.statemachine.event.ProjectStatusChangeEvent;
import com.ningdatech.pmapi.projectlib.enumeration.ProjectStatusEnum;
import com.ningdatech.pmapi.projectlib.model.entity.Project;
import org.junit.Test;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;

import java.math.BigDecimal;


Yükleniyor…
İptal
Kaydet