From f880ce436fc1c593b0f10b2615f700c37f84296b Mon Sep 17 00:00:00 2001 From: jianjun Date: Tue, 1 Sep 2020 14:24:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=98=88=E5=80=BC=E5=BC=95?= =?UTF-8?q?=E8=B5=B7=E7=9A=84=E5=A4=8D=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../epmet/support/normalizing/batch/BatchScoreCalculator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/support/normalizing/batch/BatchScoreCalculator.java b/epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/support/normalizing/batch/BatchScoreCalculator.java index 6c17298ad6..1ede9a4aae 100644 --- a/epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/support/normalizing/batch/BatchScoreCalculator.java +++ b/epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/support/normalizing/batch/BatchScoreCalculator.java @@ -75,7 +75,7 @@ public class BatchScoreCalculator { */ public BigDecimal getFinalSampleValue(Object realValue, BigDecimal threshold) { BigDecimal bdRealValue = new BigDecimal(realValue.toString()); - if (threshold.equals(-1)) { + if (threshold.compareTo(new BigDecimal(-1)) == 0) { // -1表示不使用阈值 return bdRealValue; }