From 70b8c23e412796038bcd7fb87487ca8778c39311 Mon Sep 17 00:00:00 2001 From: he <109787524@qq.com> Date: Thu, 18 Dec 2025 13:46:22 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=91=E5=AE=9A=E6=A0=87=E8=AE=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Common/AuditingData.cs | 35 +++++++++++++++++-- .../Common/AuditingDto.cs | 5 +++ 2 files changed, 38 insertions(+), 2 deletions(-) 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; + }