diff --git a/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs b/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs index d0a7e2b43..8025900a9 100644 --- a/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs +++ b/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs @@ -3622,11 +3622,15 @@ namespace IRaCIS.Core.Infra.EFCore.Common var entity = item.Entity as ReadingNoneDicomMark; - + var selfDefineIdentification = "ReadingImageTask/submitCustomTag/ReadingTaskQuestionMark/"; + if (type == "Deleted") + { + selfDefineIdentification = "ReadingImageTask/deleteCustomTag/ReadingTaskQuestionMark/"; + } await InsertInspection(entity, type, x => new InspectionConvertDTO() { - IsDistinctionInterface = false, + SelfDefineIdentification= selfDefineIdentification + type }, new { @@ -3634,6 +3638,28 @@ namespace IRaCIS.Core.Infra.EFCore.Common }); } + foreach (var item in entitys.Where(x => x.Entity.GetType() == typeof(ReadingNoneDicomMarkBinding))) + { + var type = GetEntityAuditOpt(item); + + var entity = item.Entity as ReadingNoneDicomMarkBinding; + + //var selfDefineIdentification = "ReadingImageTask/submitCustomTag/ReadingTaskQuestionMark/"; + //if (type == "Deleted") + //{ + // selfDefineIdentification = "ReadingImageTask/deleteCustomTag/ReadingTaskQuestionMark/"; + //} + + await InsertInspection(entity, type, x => new InspectionConvertDTO() + { + //SelfDefineIdentification = selfDefineIdentification + type + + }, new + { + + }); + } + //保存影像质量 多条记录,只记录一条稽查 if (entitys.Any(x => x.Entity.GetType() == typeof(ReadingTaskQuestionAnswer))) { @@ -4544,6 +4570,11 @@ namespace IRaCIS.Core.Infra.EFCore.Common result = inspection.CustomPrefix + "/" + result; } + + if (inspection.SelfDefineIdentification.IsNotNullOrEmpty()) + { + result = inspection.SelfDefineIdentification; + } return result; } diff --git a/IRaCIS.Core.Infra.EFCore/Common/AuditingDto.cs b/IRaCIS.Core.Infra.EFCore/Common/AuditingDto.cs index af98d3439..e47a59fda 100644 --- a/IRaCIS.Core.Infra.EFCore/Common/AuditingDto.cs +++ b/IRaCIS.Core.Infra.EFCore/Common/AuditingDto.cs @@ -147,6 +147,11 @@ namespace IRaCIS.Core.Infra.EFCore.Common /// public string CustomPrefix { get; set; } = string.Empty; + /// + /// 自定义标识 如果当前字段部有值 则Indentification 就是当前字段 + /// + public string SelfDefineIdentification { get; set; }=string.Empty; + }