From f8b23604c2aba720903c1356bba5f25af567ed83 Mon Sep 17 00:00:00 2001 From: he <109787524@qq.com> Date: Mon, 1 Sep 2025 17:18:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E8=A3=82=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ReadingImageTaskService.cs | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/IRaCIS.Core.Application/Service/Reading/ReadingImageTask/ReadingImageTaskService.cs b/IRaCIS.Core.Application/Service/Reading/ReadingImageTask/ReadingImageTaskService.cs index 09835644c..c3e044cd5 100644 --- a/IRaCIS.Core.Application/Service/Reading/ReadingImageTask/ReadingImageTaskService.cs +++ b/IRaCIS.Core.Application/Service/Reading/ReadingImageTask/ReadingImageTaskService.cs @@ -1570,14 +1570,7 @@ namespace IRaCIS.Core.Application.Service QuestionMark.IsLymph, }; - tableAnswers.ForEach(x => - { - x.Id = NewId.NextGuid(); - x.RowIndex = newRowIndex; - x.VisitTaskId = inDto.VisitTaskId; - x.RowId = rowAnswer.Id; - x.Answer = needSaveMark.Contains(x.QuestionMark) ? x.Answer : string.Empty; - }); + switch (taskInfo.TrialReadingCriterion.CriterionType) { @@ -1636,6 +1629,15 @@ namespace IRaCIS.Core.Application.Service }; break; } + + tableAnswers.ForEach(x => + { + x.Id = NewId.NextGuid(); + x.RowIndex = newRowIndex; + x.VisitTaskId = inDto.VisitTaskId; + x.RowId = rowAnswer.Id; + x.Answer = needSaveMark.Contains(x.QuestionMark) ? x.Answer : string.Empty; + }); await _readingTableAnswerRowInfoRepository.AddAsync(rowAnswer); await _readingTableQuestionAnswerRepository.AddRangeAsync(_mapper.Map>(tableAnswers)); await _readingTableAnswerRowInfoRepository.UpdatePartialFromQueryAsync(x => x.Id == inDto.RowId, x => new ReadingTableAnswerRowInfo()