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
continuous-integration/drone/push Build is passing
Details
commit
550cdff28f
|
|
@ -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,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue