|
|
@ -107,6 +107,10 @@ public class InfoServiceImpl extends BaseServiceImpl<InfoDao, InfoEntity> implem |
|
|
|
totalReceiver.addAll(orgStaffIds); |
|
|
|
totalReceiver.addAll(roleStaffIds); |
|
|
|
totalReceiver.addAll(groupStaffIds); |
|
|
|
if (CollectionUtils.isNotEmpty(totalReceiver) && totalReceiver.contains(formDTO.getUserId())) { |
|
|
|
log.info("接收人列表包含自己,移除"); |
|
|
|
totalReceiver.remove(formDTO.getUserId()); |
|
|
|
} |
|
|
|
if(CollectionUtils.isEmpty(totalReceiver)){ |
|
|
|
throw new RenException(EpmetErrorCode.PLEASE_CHOOSE_RECEIVER.getCode(), EpmetErrorCode.PLEASE_CHOOSE_RECEIVER.getMsg()); |
|
|
|
} |
|
|
|