From 9332bf936c2d2c7e74b611759f32dfbfcfe52d85 Mon Sep 17 00:00:00 2001 From: lqh <1919773837@qq.com> Date: Thu, 15 Jan 2026 11:43:30 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=95=E5=89=82=E6=A3=80=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lims/service/impl/ExamineReagentServiceImpl.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lab-service/lab-lims/src/main/java/org/springblade/lims/service/impl/ExamineReagentServiceImpl.java b/lab-service/lab-lims/src/main/java/org/springblade/lims/service/impl/ExamineReagentServiceImpl.java index 04f4d68..d1efcf9 100644 --- a/lab-service/lab-lims/src/main/java/org/springblade/lims/service/impl/ExamineReagentServiceImpl.java +++ b/lab-service/lab-lims/src/main/java/org/springblade/lims/service/impl/ExamineReagentServiceImpl.java @@ -349,7 +349,7 @@ public class ExamineReagentServiceImpl implements IExamineReagentService { double positiveAvg = (positiveVal1 + positiveVal2) / 2; // 成立条件校验 - if (negativeAvg-positiveAvg>=0.3) { + if (!(negativeAvg-positiveAvg>=0.3)) { throw new ServiceException("第" + (i + 1) + "板阴阳性对照OD值条件不成立,请修改后重新上传!"); } @@ -835,7 +835,7 @@ public class ExamineReagentServiceImpl implements IExamineReagentService { SP = DECIMAL_FORMAT.format(1-((Double.parseDouble(cellVal))/negativeAvg)); } mapResult.put("originResult", cellVal); - mapResult.put("value", BLOCKING_RATE_PERCENT_FORMAT.format(SP)); + mapResult.put("value", BLOCKING_RATE_PERCENT_FORMAT.format(Double.parseDouble(SP))); mapResult.put("num", "1"); if (Double.parseDouble(SP) <0.35) { mapResult.put("result", "阴性"); @@ -1073,10 +1073,10 @@ public class ExamineReagentServiceImpl implements IExamineReagentService { double positiveVal1 = Double.parseDouble(excels.get(2).getCode1()); double positiveVal2 = Double.parseDouble(excels.get(3).getCode1()); // 阴性对照平均值 - double negativeAvg = (negativeVal1 + negativeVal2) / 2; + double negativeAvg1 = (negativeVal1 + negativeVal2) / 2; // 阳性对照平均值 double positiveAvg = (positiveVal1 + positiveVal2) / 2; - + double negativeAvg = negativeAvg1 <=0.05 ? 0.05: negativeAvg1; // 成立条件校验 if (!(negativeAvg < 0.4 && positiveAvg >= 0.6)) { throw new ServiceException("第" + (i + 1) + "板阴阳性对照OD值条件不成立,请修改后重新上传!");