Ver código fonte

已请假专家不在抽取

master
WendyYang 1 ano atrás
pai
commit
58a1080dcf
1 arquivos alterados com 5 adições e 1 exclusões
  1. +5
    -1
      pmapi/src/main/java/com/ningdatech/pmapi/meeting/manage/ExpertInviteManage.java

+ 5
- 1
pmapi/src/main/java/com/ningdatech/pmapi/meeting/manage/ExpertInviteManage.java Ver arquivo

@@ -450,7 +450,11 @@ public class ExpertInviteManage {
List<String> tmpUniqCompanyCodes = CollUtils.fieldList(agreeOrNoticingUserInfos, ExpertUserFullInfo::getCompanyUniqCode);
notInCompanyUniqCodeList.addAll(tmpUniqCompanyCodes);
}

// 已请假的专家不再抽取
List<MeetingExpert> expertsOnLeave = expertGroupByStatus.get(ON_LEAVE);
if (CollUtil.isNotEmpty(expertsOnLeave)) {
expertIdsNotIn.addAll(CollUtils.fieldList(expertsOnLeave, MeetingExpert::getExpertId));
}
// 处理已拒绝专家与重复抽取
BizUtils.notEmpty(expertGroupByStatus.get(REFUSED), refuseExperts -> {
List<Long> tmpExpertIdsNotIn;


Carregando…
Cancelar
Salvar