From 03c8cdd1d24f3aa7f13ada99e3d55ba31a15fb4a Mon Sep 17 00:00:00 2001 From: he <109787524@qq.com> Date: Mon, 1 Sep 2025 13:32:58 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A8=BD=E6=9F=A5=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../IRaCIS.Core.Application.xml | 2 +- .../Common/AuditingData.cs | 23 +++++++++++++++---- 2 files changed, 20 insertions(+), 5 deletions(-) diff --git a/IRaCIS.Core.Application/IRaCIS.Core.Application.xml b/IRaCIS.Core.Application/IRaCIS.Core.Application.xml index 78dce940a..747a4e7d2 100644 --- a/IRaCIS.Core.Application/IRaCIS.Core.Application.xml +++ b/IRaCIS.Core.Application/IRaCIS.Core.Application.xml @@ -1809,7 +1809,7 @@ FrontAuditConfigService - + FrontAuditConfigService diff --git a/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs b/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs index e00f18952..87fd79d6e 100644 --- a/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs +++ b/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs @@ -1590,15 +1590,30 @@ namespace IRaCIS.Core.Infra.EFCore.Common foreach (var item in entitys.Where(x => x.Entity.GetType() == typeof(TrialIdentityUser))) { var type = GetEntityAuditOpt(item); - 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(entity, type, x => new InspectionConvertDTO { - IsDistinctionInterface = type == AuditOpt.Update ? true : false, + //IsDistinctionInterface = true , TrialId = x.TrialId, + IsDistinctionInterface = false, 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, }); }