去重处理位置2
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
d4d632adce
commit
efda03a0c9
|
|
@ -1191,7 +1191,7 @@ namespace IRaCIS.Core.Application.Contracts
|
||||||
|
|
||||||
var userEmail = item.Key;
|
var userEmail = item.Key;
|
||||||
|
|
||||||
var userTypeIdList = item.Select(t => t.UserTypeId).ToList();
|
var userTypeIdList = item.Select(t => t.UserTypeId).Distinct().ToList();
|
||||||
|
|
||||||
var existSysUser = await _identityUserRepository.Where(t => t.EMail == userEmail, true).Include(t => t.UserRoleList).FirstOrDefaultAsync();
|
var existSysUser = await _identityUserRepository.Where(t => t.EMail == userEmail, true).Include(t => t.UserRoleList).FirstOrDefaultAsync();
|
||||||
|
|
||||||
|
|
@ -1322,7 +1322,7 @@ namespace IRaCIS.Core.Application.Contracts
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
foreach (var userTypeId in userTypeIdList.Distinct())
|
foreach (var userTypeId in userTypeIdList)
|
||||||
{
|
{
|
||||||
var findTrialUserRole = findTrialUser.TrialUserRoleList.Where(t => t.UserRole?.UserTypeId == userTypeId).FirstOrDefault();
|
var findTrialUserRole = findTrialUser.TrialUserRoleList.Where(t => t.UserRole?.UserTypeId == userTypeId).FirstOrDefault();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue