Browse Source

modify:

1. 增加项目合规性审查节点;
tags/24093001
WendyYang 3 months ago
parent
commit
d3e8eb9779
2 changed files with 12 additions and 5 deletions
  1. +2
    -2
      hz-pm-api/src/main/java/com/hz/pm/api/projectlib/handle/AbstractProcessHandle.java
  2. +10
    -3
      hz-pm-api/src/main/java/com/hz/pm/api/projectlib/handle/stage/ComplianceReviewHandle.java

+ 2
- 2
hz-pm-api/src/main/java/com/hz/pm/api/projectlib/handle/AbstractProcessHandle.java View File

@@ -5,7 +5,6 @@ import com.hz.pm.api.projectlib.model.entity.ProjectStatusChange;
import com.hz.pm.api.projectlib.model.enumeration.InstTypeEnum;
import com.wflow.workflow.bean.vo.ProcessDetailVO;
import com.wflow.workflow.bean.vo.ProcessInfoVO;
import com.wflow.workflow.bean.vo.ProcessInstanceVo;
import com.wflow.workflow.bean.vo.ProcessProgressVo;
import com.wflow.workflow.enums.ProcessStatusEnum;
import com.wflow.workflow.enums.StepStatusEnum;
@@ -36,7 +35,8 @@ public abstract class AbstractProcessHandle implements Ordered, ProcessHandle {
@AllArgsConstructor
public enum ProcessNode {

PROJECT_DECLARED("项目申报", 1),
PROJECT_DECLARED("项目申报", 0),
COMPLIANCE_REVIEW("合规性审查", 1),
PROJECT_REVIEW("项目评审", 2),
APPROVAL_AMOUNT("资金下达", 3),
PROJECT_APPROVAL("项目立项", 4),


hz-pm-api/src/main/java/com/hz/pm/api/projectlib/handle/stage/ProjectDeclareHandle.java → hz-pm-api/src/main/java/com/hz/pm/api/projectlib/handle/stage/ComplianceReviewHandle.java View File

@@ -33,7 +33,7 @@ import static com.hz.pm.api.common.statemachine.event.ProjectStateChangeEvent.*;
*/
@Component
@RequiredArgsConstructor
public class ProjectDeclareHandle extends AbstractProcessHandle {
public class ComplianceReviewHandle extends AbstractProcessHandle {

private final IProjectStatusChangeService projectStatusChangeService;
private final IProjectInstService projectInstService;
@@ -41,15 +41,22 @@ public class ProjectDeclareHandle extends AbstractProcessHandle {

@Override
public ProcessNode getProcessNode() {
return ProcessNode.PROJECT_DECLARED;
return ProcessNode.COMPLIANCE_REVIEW;
}

@Override
public void handle(HandleParamContext ctx) {
Project project = ctx.getProject();
// 项目申报节点
ProcessDetailVO startNode = new ProcessDetailVO();
startNode.setProcessName(ProcessNode.PROJECT_DECLARED.getName());
startNode.setFinishTime(project.getCreateOn());
startNode.setStepStatus(StepStatusEnum.COMPLETED);
ctx.getProcessDetails().add(startNode);
// 合规性审查
ProcessDetailVO detail = new ProcessDetailVO();
detail.setProcessName(getProcessNode().getName());
ctx.getProcessDetails().add(detail);
Project project = ctx.getProject();
// 项目状态为待立项批复之前的状态
Map<ProjectStateChangeEvent, ProjectStatusChange> eventMap = projectStatusChangeService.listLastEventMap(project.getProjectCode());
ctx.setProjectStatusChanges(eventMap);

Loading…
Cancel
Save