|
@@ -107,7 +107,7 @@ public class ReceiveClearData {
|
|
|
}
|
|
|
BigDecimal bigDecimal = new BigDecimal(receiveData.getDouble(monitorDataValueEntity.getIdentifier()));
|
|
|
// 整数超过10位直接变更为0
|
|
|
- if (String.valueOf(bigDecimal).length() > 10 ){
|
|
|
+ if (String.valueOf(bigDecimal.intValue()).length() > 10 ){
|
|
|
monitorDataValueEntity.setDataValue(0.0);
|
|
|
} else {
|
|
|
// 小数保留5位
|