From 6f8f50ca19ab5315d73c77287856936157fbbb8c Mon Sep 17 00:00:00 2001 From: PoffyZhang <99775271@qq.com> Date: Fri, 30 Jun 2023 10:47:42 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E9=98=B6=E6=AE=B5debug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pmapi/projectlib/handle/ProcessExecuteChainHandle.java | 8 ++++---- .../ningdatech/pmapi/projectlib/handle/ProjectApprovalHandle.java | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/projectlib/handle/ProcessExecuteChainHandle.java b/pmapi/src/main/java/com/ningdatech/pmapi/projectlib/handle/ProcessExecuteChainHandle.java index 1253eac..30b187b 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/projectlib/handle/ProcessExecuteChainHandle.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/projectlib/handle/ProcessExecuteChainHandle.java @@ -56,15 +56,15 @@ public class ProcessExecuteChainHandle { for (AbstractProcessBusinessHandle processBusinessHandle : processBusinessHandles) { if(Objects.nonNull(project) && RegionContant.LS_LQ_CODE.equals(project.getAreaCode())) { if(processBusinessHandle instanceof AnnualPlanHandle){ - processBusinessHandle.setOrder(5); - }else if(processBusinessHandle instanceof ConstructionPlanReviewHandle){ processBusinessHandle.setOrder(6); + }else if(processBusinessHandle instanceof ConstructionPlanReviewHandle){ + processBusinessHandle.setOrder(5); } }else{ if(processBusinessHandle instanceof AnnualPlanHandle){ - processBusinessHandle.setOrder(6); - }else if(processBusinessHandle instanceof ConstructionPlanReviewHandle){ processBusinessHandle.setOrder(5); + }else if(processBusinessHandle instanceof ConstructionPlanReviewHandle){ + processBusinessHandle.setOrder(6); } } if(processBusinessHandle instanceof ConstructionPlanReviewHandle){ diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/projectlib/handle/ProjectApprovalHandle.java b/pmapi/src/main/java/com/ningdatech/pmapi/projectlib/handle/ProjectApprovalHandle.java index c3782ac..4005e9b 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/projectlib/handle/ProjectApprovalHandle.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/projectlib/handle/ProjectApprovalHandle.java @@ -95,9 +95,9 @@ public class ProjectApprovalHandle extends AbstractProcessBusinessHandle { } else { // 取 状态机 改变状态时间 ProjectStatusChange projectStatusChange = projectStatusChangeService.getOne(Wrappers.lambdaQuery(ProjectStatusChange.class) - .eq(ProjectStatusChange::getProjectId, projectId) + .in(ProjectStatusChange::getProjectId, allVersionProjectIds) .eq(ProjectStatusChange::getEvent, ProjectStatusChangeEvent.PROJECT_APPROVAL.name()) - .last("limit 1")); + .last(BizConst.LIMIT_1)); if (Objects.nonNull(projectStatusChange)) { processDetailVO.setFinishTime(projectStatusChange.getCreateOn()); processDetailVO.setStepStatus(StepStatusEnum.COMPLETED);