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;