From b30ae28fecbbd5bd95e098c39e54e10a2657108d Mon Sep 17 00:00:00 2001 From: he <10978375@qq.com> Date: Fri, 14 Oct 2022 10:08:16 +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 --- .../Service/Reading/ReadingImageTaskService.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/IRaCIS.Core.Application/Service/Reading/ReadingImageTaskService.cs b/IRaCIS.Core.Application/Service/Reading/ReadingImageTaskService.cs index 39225a852..b435d2186 100644 --- a/IRaCIS.Core.Application/Service/Reading/ReadingImageTaskService.cs +++ b/IRaCIS.Core.Application/Service/Reading/ReadingImageTaskService.cs @@ -2170,11 +2170,17 @@ namespace IRaCIS.Application.Services { x.ReadingQuestionTrial.OrderMark, x.RowIndex, - + x.Id, }).ToListAsync(); - IEnumerable measureDataList = rowAnswerList.Select(x => x.OrderMark + x.RowIndex.GetLesionMark()).ToList(); + var unableEvaluateRowIds = await _readingTableQuestionAnswerRepository.Where(x => x.VisitTaskId == inDto.VisitTaskId && x.Answer== TargetState.UnableEvaluate.GetEnumInt() + && x.ReadingTableQuestionTrial.QuestionMark == QuestionMark.State + ) + .Select(x.RowId).Distinct().ToListAsync(); + + + IEnumerable measureDataList = rowAnswerList.Where(x=> !unableEvaluateRowIds.Contains(x.Id)).Select(x => x.OrderMark + x.RowIndex.GetLesionMark()).ToList(); if (rowAnswerList.Count > 0)