From 5d722950ce336af5f85e5bdeca093856872680db Mon Sep 17 00:00:00 2001 From: he <109787524@qq.com> Date: Wed, 17 Dec 2025 10:52:04 +0800 Subject: [PATCH] =?UTF-8?q?=E9=AA=8C=E8=AF=81=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ReadingCalculate/OCTCalculateService.cs | 24 ++++++++++--------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/IRaCIS.Core.Application/Service/ReadingCalculate/OCTCalculateService.cs b/IRaCIS.Core.Application/Service/ReadingCalculate/OCTCalculateService.cs index 9a5d7ffd0..c5fab46d5 100644 --- a/IRaCIS.Core.Application/Service/ReadingCalculate/OCTCalculateService.cs +++ b/IRaCIS.Core.Application/Service/ReadingCalculate/OCTCalculateService.cs @@ -336,18 +336,18 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate } measuredValueList = measuredValueList.OrderBy(x => x.PlaqueNum).ToList(); - List nums = new List() { 1, 2, 3 }; - if (measuredValueList.Any(x => !nums.Contains(x.PlaqueNum))) - { - throw new BusinessValidationFailedException(_localizer["IVUSOCT_PlaqueNum123"]); - } + } catch (Exception) { throw new BusinessValidationFailedException(_localizer["IVUS_UplpadDataError"]); } - + List nums = new List() { 1, 2, 3 }; + if (measuredValueList.Any(x => !nums.Contains(x.PlaqueNum))) + { + throw new BusinessValidationFailedException(_localizer["IVUSOCT_PlaqueNum123"]); + } Dictionary isPresent = new Dictionary() { @@ -646,11 +646,6 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate measuredValueList = measuredValueList.OrderBy(x => x.PlaqueNum).ToList(); - List nums = new List() { 1, 2, 3 }; - if (measuredValueList.Any(x => !nums.Contains(x.PlaqueNum))) - { - throw new BusinessValidationFailedException(_localizer["IVUSOCT_PlaqueNum123"]); - } } catch (Exception) { @@ -658,6 +653,13 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate } + List nums = new List() { 1, 2, 3 }; + if (measuredValueList.Any(x => !nums.Contains(x.PlaqueNum))) + { + throw new BusinessValidationFailedException(_localizer["IVUSOCT_PlaqueNum123"]); + } + + foreach (var item in measuredValueList) { if (item.FirstData > 360)