Merge branch 'Test_HIR_Net8' of https://gitea.frp.extimaging.com/XCKJ/irc-netcore-api into Test_HIR_Net8
continuous-integration/drone/push Build is passing Details

Test_HIR_Net8
hang 2025-09-01 14:27:03 +08:00
commit 550cdff28f
1 changed files with 19 additions and 4 deletions

View File

@ -1590,15 +1590,30 @@ namespace IRaCIS.Core.Infra.EFCore.Common
foreach (var item in entitys.Where(x => x.Entity.GetType() == typeof(TrialIdentityUser))) foreach (var item in entitys.Where(x => x.Entity.GetType() == typeof(TrialIdentityUser)))
{ {
var type = GetEntityAuditOpt(item); var type = GetEntityAuditOpt(item);
var entity = item.Entity as TrialIdentityUser; var entity = item.Entity as TrialIdentityUser;
//var user = await _dbContext.Users.Include(x => x.UserTypeRole).FirstOrDefaultAsync(x => x.Id == entity.UserId); string extraIndentification = string.Empty;
var identityUser = await _dbContext.IdentityUser.AsNoTracking().Where(x => x.Id == entity.IdentityUserId).FirstOrDefaultAsync();
await InsertInspection<TrialIdentityUser>(entity, type, x => new InspectionConvertDTO await InsertInspection<TrialIdentityUser>(entity, type, x => new InspectionConvertDTO
{ {
IsDistinctionInterface = type == AuditOpt.Update ? true : false, //IsDistinctionInterface = true ,
TrialId = x.TrialId, TrialId = x.TrialId,
IsDistinctionInterface = false,
ObjectRelationParentId = x.TrialId, ObjectRelationParentId = x.TrialId,
ObjectRelationParentId2 = x.IdentityUserId, ExtraIndentification = extraIndentification,
//ObjectRelationParentId2 = x.IdentityUserId,
}, new
{
identityUser.FullName,
identityUser.EMail,
identityUser.Code,
identityUser.UserCode,
identityUser.UserName,
identityUser.DepartmentName,
identityUser.Phone,
identityUser.OrganizationName,
}); });
} }