From 424441a3fcf92bc503b5376cf231089e451eda29 Mon Sep 17 00:00:00 2001 From: he <109787524@qq.com> Date: Mon, 23 Jun 2025 14:36:46 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A8=BD=E6=9F=A5=E4=BF=9D=E5=AD=98Ivus?= =?UTF-8?q?=E5=92=8COct?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Common/AuditingData.cs | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs b/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs index 967fe00b3..b84f7d30e 100644 --- a/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs +++ b/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs @@ -3232,10 +3232,31 @@ namespace IRaCIS.Core.Infra.EFCore.Common entity.RowMark = entity.OrderMark + entity.RowIndex.GetLesionMark(); + string extraIdentification = string.Empty; + + if (type == AuditOpt.Add) + { + var readingQuestion = await _dbContext.ReadingQuestionTrial.Where(t => t.Id == entity.QuestionId).FirstOrDefaultAsync(); + + List lesionTypeList = new List() + { + LesionType.MatchValues, + LesionType.PatchDataStatistics, + LesionType.PAV, + LesionType.FCT, + LesionType.LipidAngle, + + }; + if (lesionTypeList.Contains(readingQuestion.LesionType)) + { + extraIdentification = "/" + readingQuestion.LesionType.GetEnumNullInt(); + } + } await InsertInspection(entity, type, x => new InspectionConvertDTO() { + ExtraIndentification = extraIdentification, VisitTaskId = x.VisitTaskId, ObjectRelationParentId = x.VisitTaskId,