diff --git a/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs b/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs index d4effd16f..02e9b3882 100644 --- a/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs +++ b/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs @@ -11,7 +11,6 @@ using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; -using System.Text; using System.Threading.Tasks; namespace IRaCIS.Core.Infra.EFCore.Common @@ -532,6 +531,8 @@ namespace IRaCIS.Core.Infra.EFCore.Common } } + + #region 注释代码 ////非Dicom文件 //foreach (var item in entitys.Where(x => x.Entity.GetType() == typeof(NoneDicomStudyFile))) @@ -872,11 +873,11 @@ namespace IRaCIS.Core.Infra.EFCore.Common /// 插入稽查实体 /// /// 泛型 - /// 数据 - /// 类型 - /// 表达式 - /// 实体对象 - /// 实体名称 + /// 数据 EF 跟踪实体信息 + /// 类型 Add|Update|delete + /// 表达式 稽查实体部分字段赋值 + /// 实体对象 添加到稽查记录详细Json 匿名对象 + /// 实体名称 /// public async Task InsertInspection(EntityEntry data, string type, Expression> expression = null, object otherItem = null, T entityData = null) where T : class { @@ -898,6 +899,8 @@ namespace IRaCIS.Core.Infra.EFCore.Common } + + inspection.Identification = $"{_userInfo.RequestUrl}/{ entityTypeName}/{type}"; #region 注释