From fc063c4fab2a3c44f920a81aae341d8b45fc9da1 Mon Sep 17 00:00:00 2001 From: WendyYang Date: Wed, 7 Aug 2024 11:35:13 +0800 Subject: [PATCH] =?UTF-8?q?modify:=201.=20=E7=BB=88=E6=AD=A2=E5=AE=A1?= =?UTF-8?q?=E6=89=B9=E6=8B=92=E7=BB=9D=E4=BF=AE=E6=94=B9=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/hz/pm/api/projectlib/helper/ProjectChangeStopHelper.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hz-pm-api/src/main/java/com/hz/pm/api/projectlib/helper/ProjectChangeStopHelper.java b/hz-pm-api/src/main/java/com/hz/pm/api/projectlib/helper/ProjectChangeStopHelper.java index dad7310..4ae3f64 100644 --- a/hz-pm-api/src/main/java/com/hz/pm/api/projectlib/helper/ProjectChangeStopHelper.java +++ b/hz-pm-api/src/main/java/com/hz/pm/api/projectlib/helper/ProjectChangeStopHelper.java @@ -134,7 +134,7 @@ public class ProjectChangeStopHelper { TenderStateChangeEvent tenderEvent) { if (projBeforeEvent != null) { if (projEvent.equals(ProjectStateChangeEvent.STOPPED_APPLY_FAILED)) { - project.setStoppedStatus(buildBizStatus(projBeforeEvent).getCode()); + project.setStoppedStatus(buildBizStatus(projEvent).getCode()); } else { Wrapper changeHistoryWrapper = Wrappers.lambdaQuery(ProjectChangeHistory.class) .eq(ProjectChangeHistory::getProjectCode, project.getProjectCode()) @@ -158,7 +158,7 @@ public class ProjectChangeStopHelper { .createOn(project.getCreateOn()) .build()); project.setStatus(change.getBeforeStatus()); - project.setStage(project.getStatus() - project.getStatus() % 10000); + project.setStage(ProjectStatus.getNoNull(project.getStatus()).getStage().getCode()); projectService.updateById(project); List purchases = purchaseService.listByProjectId(project.getId()); if (!purchases.isEmpty()) {