From db204ab0015abf3826199962870dfbfa26bb2813 Mon Sep 17 00:00:00 2001 From: he <109787524@qq.com> Date: Tue, 16 Dec 2025 17:58:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0PAV=E5=85=B6=E4=BB=96?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E7=AD=94=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ReadingCalculate/IVUSCalculateService.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/IRaCIS.Core.Application/Service/ReadingCalculate/IVUSCalculateService.cs b/IRaCIS.Core.Application/Service/ReadingCalculate/IVUSCalculateService.cs index 656bd58fa..765fc64c2 100644 --- a/IRaCIS.Core.Application/Service/ReadingCalculate/IVUSCalculateService.cs +++ b/IRaCIS.Core.Application/Service/ReadingCalculate/IVUSCalculateService.cs @@ -782,6 +782,21 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate TableQuestionId = otherQuestion.Id, }); } + + // 添加PAV其他问题答案 + foreach (var otherQuestion in pAvTableQuestionList.Where(x => !tableAnswers.Any(y => y.TableQuestionId == x.Id && y.RowId == newRowId))) + { + tableAnswers.Add(new ReadingTableQuestionAnswer() + { + Answer = string.Empty, + QuestionId = pAVquestionInfo!.QuestionId, + TrialId = inDto.TrialId, + VisitTaskId = inDto.VisitTaskId, + RowId = newRowId, + RowIndex = item, + TableQuestionId = otherQuestion.Id, + }); + } } await _readingTableAnswerRowInfoRepository.BatchDeleteNoTrackingAsync(x => (x.QuestionId == questionInfo.QuestionId || x.QuestionId == pAVquestionInfo.QuestionId) && x.VisitTaskId == inDto.VisitTaskId);