修改中心调研提示

IRC_NewDev
hang 2023-10-31 09:45:35 +08:00
parent 6a56132de9
commit 85934de439
1 changed files with 1 additions and 1 deletions

View File

@ -708,7 +708,7 @@ namespace IRaCIS.Core.Application.Contracts
throw new BusinessValidationFailedException(_localizer["TrialSiteSurvey_MissingAccount"]);
}
if (currentUserList.GroupBy(t => new { t.UserTypeId, t.Email })
if (currentUserList.Where(t=>t.IsGenerateAccount && t.UserTypeId!=null).GroupBy(t => new { t.UserTypeId, t.Email })
.Any(g => g.Count() > 1))
{
throw new BusinessValidationFailedException(_localizer["TrialSiteSurvey_DuplicateEmail"]);