|
|
@@ -13,6 +13,7 @@ import com.ningdatech.pmapi.projectlib.enumeration.ProjectStatusEnum; |
|
|
|
import com.ningdatech.pmapi.projectlib.helper.ProjectHelper; |
|
|
|
import com.ningdatech.pmapi.projectlib.model.entity.Project; |
|
|
|
import com.ningdatech.pmapi.projectlib.model.req.ProjectApprovedReq; |
|
|
|
import com.ningdatech.pmapi.projectlib.model.req.ProjectIdReq; |
|
|
|
import com.ningdatech.pmapi.projectlib.model.req.ProjectListReq; |
|
|
|
import com.ningdatech.pmapi.projectlib.model.req.StartProjectDeclareReq; |
|
|
|
import com.ningdatech.pmapi.projectlib.model.vo.AnnualPlanListItemVO; |
|
|
@@ -47,7 +48,6 @@ public class AnnualPlanLibManage { |
|
|
|
*/ |
|
|
|
private static final List<ProjectStatusEnum> ANNUAL_PLAN_LIST_STATUS = Arrays.asList( |
|
|
|
IN_THE_ANNUAL_PLAN, |
|
|
|
BE_SUSPENDED, |
|
|
|
SCHEME_UNDER_REVIEW, |
|
|
|
SCHEME_REVIEW_FAILED, |
|
|
|
TO_BE_APPROVED, |
|
|
@@ -123,4 +123,10 @@ public class AnnualPlanLibManage { |
|
|
|
projectService.update(update); |
|
|
|
} |
|
|
|
|
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
public void suspendAnnualPlan(ProjectIdReq req) throws Exception { |
|
|
|
Project project = projectService.getById(req.getProjectId()); |
|
|
|
stateMachine.execute(project, ProjectStatusChangeEvent.ANNUAL_PLAN_SUSPEND); |
|
|
|
} |
|
|
|
|
|
|
|
} |