Browse Source

重大项目联审

tags/24080901
PoffyZhang 1 year ago
parent
commit
12a23f193d
2 changed files with 5 additions and 3 deletions
  1. +2
    -1
      pmapi/src/main/java/com/ningdatech/pmapi/scheduler/contants/TaskContant.java
  2. +3
    -2
      pmapi/src/main/java/com/ningdatech/pmapi/scheduler/task/CheckProvincialReviewResultTask.java

+ 2
- 1
pmapi/src/main/java/com/ningdatech/pmapi/scheduler/contants/TaskContant.java View File

@@ -40,7 +40,8 @@ public interface TaskContant {
} }


class ProvinceReview{ class ProvinceReview{

public static final String END_NODE_ID = "结束"; public static final String END_NODE_ID = "结束";

public static final String END_STEP = "流程结束";
} }
} }

+ 3
- 2
pmapi/src/main/java/com/ningdatech/pmapi/scheduler/task/CheckProvincialReviewResultTask.java View File

@@ -83,13 +83,14 @@ public class CheckProvincialReviewResultTask {
//取到最后一个审批元素 //取到最后一个审批元素
ProcessCommentRes lastProcessComment = processComments.get(processComments.size() - 1); ProcessCommentRes lastProcessComment = processComments.get(processComments.size() - 1);
//最后一个 节点 nodeId 是结束 说明已经批完 //最后一个 节点 nodeId 是结束 说明已经批完
if(StringUtils.isNotBlank(lastProcessComment.getNodeId()) &&
TaskContant.ProvinceReview.END_NODE_ID.equals(lastProcessComment.getNodeId())){
if(StringUtils.isNotBlank(lastProcessComment.getStepName()) &&
TaskContant.ProvinceReview.END_STEP.equals(lastProcessComment.getStepName())){
//在省级联审 才调状态机 否则 只改变 联审结果 //在省级联审 才调状态机 否则 只改变 联审结果
if(ProjectStatusEnum.JOINT_REVIEW_BY_PROVINCIAL_DEPARTMENTS.getCode().equals( if(ProjectStatusEnum.JOINT_REVIEW_BY_PROVINCIAL_DEPARTMENTS.getCode().equals(
project.getStatus())){ project.getStatus())){
stateMachineUtils.pass(project); stateMachineUtils.pass(project);
} }
log.info("已经审批完成 进入下一状态");
} }
project.setUpdateOn(LocalDateTime.now()); project.setUpdateOn(LocalDateTime.now());
//保存审核结果 //保存审核结果


Loading…
Cancel
Save