From b44c92f291b73c6314876901815d7cfb5fbb1283 Mon Sep 17 00:00:00 2001 From: he <109787524@qq.com> Date: Mon, 23 Jun 2025 15:35:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=9D=E5=AD=98=E6=B5=8B=E9=87=8F=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Common/AuditingData.cs | 20 ++++--------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs b/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs index b84f7d30e..2544b1ad8 100644 --- a/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs +++ b/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs @@ -3234,24 +3234,12 @@ namespace IRaCIS.Core.Infra.EFCore.Common string extraIdentification = string.Empty; - if (type == AuditOpt.Add) + var readingQuestion = await _dbContext.ReadingQuestionTrial.Where(t => t.Id == entity.QuestionId).Include(x=>x.ReadingQuestionCriterionTrial).FirstNotNullAsync(); + if (readingQuestion.ReadingQuestionCriterionTrial.CriterionGroup == CriterionGroup.Nontumorous) { - 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(); - } + extraIdentification = "/Nontumorous"; } + await InsertInspection(entity, type, x => new InspectionConvertDTO()