From ed8fc5f674544d3af63c6f68093ffc038385c493 Mon Sep 17 00:00:00 2001
From: dongyukun <1208714201@qq.com>
Date: 星期一, 16 十二月 2024 09:30:04 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/common/enums/DataQualityEnum.java |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/common/enums/DataQualityEnum.java b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/common/enums/DataQualityEnum.java
index 50c7860..e0b3911 100644
--- a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/common/enums/DataQualityEnum.java
+++ b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/common/enums/DataQualityEnum.java
@@ -27,8 +27,12 @@
             if (new BigDecimal(((Number) value).doubleValue()).compareTo(CommonConstant.BAD_VALUE) == 0) {
                 return BAD;
             }
+        } else if (value instanceof BigDecimal) {
+            if (new BigDecimal(value.toString()).compareTo(CommonConstant.BAD_VALUE) == 0) {
+                return BAD;
+            }
         } else if (value instanceof String) {
-            if (value.toString().equals(CommonConstant.BAD_VALUE.toString())) {
+            if (new BigDecimal(value.toString()).compareTo(CommonConstant.BAD_VALUE) == 0) {
                 return BAD;
             }
         }

--
Gitblit v1.9.3