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