From 63b9f4e7756bb778e9e177910b49cc186a724948 Mon Sep 17 00:00:00 2001 From: he <109787524@qq.com> Date: Wed, 5 Aug 2026 12:11:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=BC=E5=87=BA=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Service/ReadingCalculate/IVUSCalculateService.cs | 10 ++++++++-- .../Service/ReadingCalculate/OCTCalculateService.cs | 6 ++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/IRaCIS.Core.Application/Service/ReadingCalculate/IVUSCalculateService.cs b/IRaCIS.Core.Application/Service/ReadingCalculate/IVUSCalculateService.cs index 672413414..5b628e42f 100644 --- a/IRaCIS.Core.Application/Service/ReadingCalculate/IVUSCalculateService.cs +++ b/IRaCIS.Core.Application/Service/ReadingCalculate/IVUSCalculateService.cs @@ -449,8 +449,14 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate VisitTaskId = inDto.VisitTaskId }); targetSegmentAnswer = string.Join(",", targetSegmentData - .Where(x =>x.BodyPartForEdit.IsNotNullOrEmpty()) - .Select(x => x.BodyPartForEdit)); + .Where(x => x.BodyPartForEdit.IsNotNullOrEmpty()) + .SelectMany(x => x.BodyPartForEdit.Split('|')) + .Where(s => !string.IsNullOrWhiteSpace(s)) + .Distinct()); + + + + } diff --git a/IRaCIS.Core.Application/Service/ReadingCalculate/OCTCalculateService.cs b/IRaCIS.Core.Application/Service/ReadingCalculate/OCTCalculateService.cs index e5bdc061b..78264856c 100644 --- a/IRaCIS.Core.Application/Service/ReadingCalculate/OCTCalculateService.cs +++ b/IRaCIS.Core.Application/Service/ReadingCalculate/OCTCalculateService.cs @@ -306,8 +306,10 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate VisitTaskId = inDto.VisitTaskId }); targetSegmentAnswer = string.Join(",", targetSegmentData - .Where(x => x.BodyPartForEdit.IsNotNullOrEmpty()) - .Select(x => x.BodyPartForEdit)); + .Where(x => x.BodyPartForEdit.IsNotNullOrEmpty()) + .SelectMany(x => x.BodyPartForEdit.Split('|')) + .Where(s => !string.IsNullOrWhiteSpace(s)) + .Distinct()); }