diff --git a/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs b/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs index 55d2125d6..30c85fba4 100644 --- a/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs +++ b/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs @@ -2018,6 +2018,21 @@ namespace IRaCIS.Core.Infra.EFCore.Common ); } + // + foreach (var item in entitys.Where(x => x.Entity.GetType() == typeof(DicomInstance))) + { + var type = GetEntityAuditOpt(item); + + var entity = item.Entity as DicomInstance; + + await InsertInspection(item.Entity as DicomInstance, type, x => new InspectionConvertDTO() + { + ObjectRelationParentId = x.SeriesId, + ObjectRelationParentId2 = x.StudyId, + } + ); + } + // 非Dicom foreach (var item in entitys.Where(x => x.Entity.GetType() == typeof(NoneDicomStudy)))