Compare commits

..

No commits in common. "1f490138a033338e2174df687c12a2aaa662e3dc" and "b83e42d788876f844fb8615a85fa310e28cd2731" have entirely different histories.

1 changed files with 7 additions and 14 deletions

View File

@ -850,19 +850,12 @@ namespace IRaCIS.Core.API.Controllers
throw new BusinessValidationFailedException(_localizer["UploadDownLoad_InvalidCenters"]);
}
foreach (var item in excelList.GroupBy(t => t.Email))
if (excelList.GroupBy(t => new { t.TrialSiteCode, t.UserTypeStr, t.Email }).Any(g => g.Count() > 1))
{
var itemList = item.ToList();
var first = item.First();
if (itemList.Any(t => t.Email != first.Email || t.Phone != first.Phone || t.OrganizationName != first.OrganizationName || t.FirstName != first.FirstName || t.LastName != first.LastName))
{
//同一邮箱,用户信息应该保持一致!
// 同一邮箱,同一用户类型,只能生成一个账户,请核查Excel数据
throw new BusinessValidationFailedException(_localizer["UploadDownLoad_CheckDuplicateAccounts"]);
}
}
if (excelList.Any(t => !t.Email.Contains("@")))
{