Uat_Study
hang 2023-09-05 13:17:32 +08:00
parent c2bf16e1ff
commit a92bbbb275
1 changed files with 1 additions and 1 deletions

View File

@ -380,7 +380,7 @@ namespace IRaCIS.Core.Application.Service
.ToList();
//收件人 有CRC CRA CRC CRA的账户要按照中心发送
if (siteId == null && toUserTypeEnumList.Any(t => t == UserTypeEnum.ClinicalResearchCoordinator || t == UserTypeEnum.CRA))
if (siteId == null && toUserTypeEnumList.Any(t => t == UserTypeEnum.ClinicalResearchCoordinator || t == UserTypeEnum.CRA) && onlyToUserId == null)
{
throw new BusinessValidationFailedException("当前场景收件人包含CRC CRA,但是没有siteId,请联系后端开发");
}