From 3045b0ec48ba1a21ddcef8238e3a0da288a51106 Mon Sep 17 00:00:00 2001 From: he <109787524@qq.com> Date: Thu, 24 Apr 2025 15:53:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../MRECISTHCCCalculateService.cs | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/IRaCIS.Core.Application/Service/ReadingCalculate/MRECISTHCCCalculateService.cs b/IRaCIS.Core.Application/Service/ReadingCalculate/MRECISTHCCCalculateService.cs index d28135e2d..8a11bd992 100644 --- a/IRaCIS.Core.Application/Service/ReadingCalculate/MRECISTHCCCalculateService.cs +++ b/IRaCIS.Core.Application/Service/ReadingCalculate/MRECISTHCCCalculateService.cs @@ -881,9 +881,30 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate TableQuestionId = x.TableQuestionId, TrialId = x.TrialId, VisitTaskId = visitTaskId, + }).ToList(); + + // 添加 典型肝内病灶 默认值 + tableRowAnswers.ForEach(x => + { + var tableQuestion = tableQuestionList.Where(y => y.ReadingQuestionId == x.QuestionId && y.QuestionMark == QuestionMark.TypicalIntrahepaticLesion).FirstOrDefault(); + if (tableQuestion != null) + { + tableAnswers.Add(new ReadingTableQuestionAnswer() + { + Id = NewId.NextGuid(), + Answer = ((int)(object)ReadingYesOrNo.No).ToString(), + QuestionId = x.QuestionId, + RowIndex = x.RowIndex, + RowId = x.Id, + TableQuestionId = tableQuestion.Id, + TrialId = x.TrialId, + VisitTaskId = visitTaskId, + }); + } }); + var addList = _mapper.Map>(tableRowAnswers); await _readingTableAnswerRowInfoRepository.AddRangeAsync(addList);