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); }