From df66283fdc91fd5ebdbcafed07f232e5f7d47238 Mon Sep 17 00:00:00 2001 From: 潘志宝 <979469083@qq.com> Date: 星期日, 15 十二月 2024 12:21:08 +0800 Subject: [PATCH] DataQualityEnum --- iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/common/enums/DataQualityEnum.java | 4 ++++ 1 files changed, 4 insertions(+), 0 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..463c651 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,6 +27,10 @@ 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())) { return BAD; -- Gitblit v1.9.3