From 0acf8a1588906abcf44e55e440f7948cc351266c Mon Sep 17 00:00:00 2001 From: chen <2710907404@qq.com> Date: Fri, 28 Mar 2025 17:57:19 +0800 Subject: [PATCH] =?UTF-8?q?20250328=20=E6=9B=B4=E6=96=B0=201.=E5=A4=84?= =?UTF-8?q?=E7=90=86=E7=94=9F=E7=89=A9=E6=A0=B7=E6=9C=AC=E4=B8=B0=E5=BA=A6?= =?UTF-8?q?=E6=AF=94=E5=92=8C=E4=B8=B0=E5=BA=A6=E6=AF=94=E5=81=8F=E5=B7=AE?= =?UTF-8?q?=E5=9C=A8=E5=89=8D=E5=8F=B0=E7=9A=84=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../inspection/vo/TestRecordSampleDataVO.java | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/dlp-drugtesting-biz/src/main/java/digital/laboratory/platform/inspection/vo/TestRecordSampleDataVO.java b/dlp-drugtesting-biz/src/main/java/digital/laboratory/platform/inspection/vo/TestRecordSampleDataVO.java index d04ea21..79fd4f0 100644 --- a/dlp-drugtesting-biz/src/main/java/digital/laboratory/platform/inspection/vo/TestRecordSampleDataVO.java +++ b/dlp-drugtesting-biz/src/main/java/digital/laboratory/platform/inspection/vo/TestRecordSampleDataVO.java @@ -99,22 +99,15 @@ public class TestRecordSampleDataVO { * @return */ public BigDecimal getIonAbundanceRatioError() { - return expandList.get(1).getIonAbundanceRatioError(); + return expandList != null && expandList.size() > 1 ? expandList.get(1).getIonAbundanceRatioError() : null; } - /** - * 该getter方法因为生物样本的丰度比只有一个,为前端显示而添加 - * - * @return - */ public BigDecimal getIonAbundanceRatio() { - return expandList.get(1).getIonAbundanceRatio(); + return expandList != null && expandList.size() > 1 ? expandList.get(1).getIonAbundanceRatio() : null; } - /** - * 离子丰度比偏差是否在误差范围内 - */ public String getIonAbundanceRatioWithinError() { - return expandList.get(1).getIonAbundanceRatioWithinError(); + return expandList != null && expandList.size() > 1 ? expandList.get(1).getIonAbundanceRatioWithinError() : null; } + }