Uat_Study
hang 2022-05-25 10:13:17 +08:00
parent fc2acded7f
commit 6e82b8ef0f
1 changed files with 9 additions and 6 deletions

View File

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