From 58a1080dcf63507e101cb1f55fe6308ca4ce4e0b Mon Sep 17 00:00:00 2001 From: WendyYang Date: Wed, 19 Apr 2023 15:00:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=B2=E8=AF=B7=E5=81=87=E4=B8=93=E5=AE=B6?= =?UTF-8?q?=E4=B8=8D=E5=9C=A8=E6=8A=BD=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/ningdatech/pmapi/meeting/manage/ExpertInviteManage.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/meeting/manage/ExpertInviteManage.java b/pmapi/src/main/java/com/ningdatech/pmapi/meeting/manage/ExpertInviteManage.java index cad0c9c..69134e4 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/meeting/manage/ExpertInviteManage.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/meeting/manage/ExpertInviteManage.java @@ -450,7 +450,11 @@ public class ExpertInviteManage { List tmpUniqCompanyCodes = CollUtils.fieldList(agreeOrNoticingUserInfos, ExpertUserFullInfo::getCompanyUniqCode); notInCompanyUniqCodeList.addAll(tmpUniqCompanyCodes); } - + // 已请假的专家不再抽取 + List expertsOnLeave = expertGroupByStatus.get(ON_LEAVE); + if (CollUtil.isNotEmpty(expertsOnLeave)) { + expertIdsNotIn.addAll(CollUtils.fieldList(expertsOnLeave, MeetingExpert::getExpertId)); + } // 处理已拒绝专家与重复抽取 BizUtils.notEmpty(expertGroupByStatus.get(REFUSED), refuseExperts -> { List tmpExpertIdsNotIn;