From 59be0a51c3376ea3036653b1d836116ec634a513 Mon Sep 17 00:00:00 2001 From: WendyYang Date: Mon, 16 Dec 2024 17:11:43 +0800 Subject: [PATCH] =?UTF-8?q?feat:=201.=20=E6=89=80=E6=9C=89=E5=BB=BA?= =?UTF-8?q?=E8=AE=BE=E7=B1=BB=E6=A0=87=E9=A1=B9=E6=B5=81=E7=A8=8B=E5=AE=8C?= =?UTF-8?q?=E6=88=90=E5=88=A4=E6=96=AD=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/hz/pm/api/todocenter/manage/HandlerManage.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/hz-pm-api/src/main/java/com/hz/pm/api/todocenter/manage/HandlerManage.java b/hz-pm-api/src/main/java/com/hz/pm/api/todocenter/manage/HandlerManage.java index d5e8562..869ea0f 100644 --- a/hz-pm-api/src/main/java/com/hz/pm/api/todocenter/manage/HandlerManage.java +++ b/hz-pm-api/src/main/java/com/hz/pm/api/todocenter/manage/HandlerManage.java @@ -332,10 +332,7 @@ public class HandlerManage { .orElseThrow(() -> BizException.wrap("当前审批的标段不存在")); Set instCodes = CollUtils.fieldSet(purchaseInstMap.values(), PurchaseInst::getInstCode); - if (instCodes.size() != purchases.size()) { - return; - } - if (wflowHelper.allInstancesFinished(instCodes)) { + if (instCodes.size() == purchases.size() && wflowHelper.allInstancesFinished(instCodes)) { projectStateMachineUtil.pass(project); projectService.updateById(project); }