diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/DelayedApplyManage.java b/pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/DelayedApplyManage.java index 79079b6..7dc0458 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/DelayedApplyManage.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/DelayedApplyManage.java @@ -139,7 +139,10 @@ public class DelayedApplyManage { Integer.valueOf(w.getBuildCycle()) : null); item.setPlanAcceptanceTime(w.getPlanAcceptanceTime()); // 判断当前项目是否已经开启了延期申请并且没有审批完成 - String instCode = w.getInstCode(); + ProjectDelayApply delayApply = projectDelayApplyService.getOne(Wrappers.lambdaQuery(ProjectDelayApply.class) + .eq(ProjectDelayApply::getProjectId, w.getId()) + .last("limit 1")); + String instCode = delayApply.getInstanceId(); // 获取流程通过后的流程实例 HistoricProcessInstance newInstance = historyService.createHistoricProcessInstanceQuery() .processInstanceId(instCode)