diff --git a/core/core-backend/src/main/java/io/dataease/chart/manage/ChartViewThresholdManage.java b/core/core-backend/src/main/java/io/dataease/chart/manage/ChartViewThresholdManage.java index aeb20ae848..e28a82a59f 100644 --- a/core/core-backend/src/main/java/io/dataease/chart/manage/ChartViewThresholdManage.java +++ b/core/core-backend/src/main/java/io/dataease/chart/manage/ChartViewThresholdManage.java @@ -283,7 +283,7 @@ public class ChartViewThresholdManage { String fieldDTOName = fieldDTO.getName(); String dataeaseName = fieldDTO.getDataeaseName(); String replacement = null; - if (fieldDTO.getDeType().equals(DeTypeConstants.DE_FLOAT)) { + if (fieldDTO.getDeType().equals(DeTypeConstants.DE_FLOAT) || fieldDTO.getDeType().equals(DeTypeConstants.DE_INT)) { List valueList = rows.stream().map(row -> ObjectUtils.isEmpty(row.get(dataeaseName)) ? null : stripTrailingZeros2String(row.get(dataeaseName))).collect(Collectors.toList()); replacement = fieldDTOName + ": " + JsonUtil.toJSONString(valueList); } else { @@ -310,7 +310,7 @@ public class ChartViewThresholdManage { return null; } if (!(value instanceof BigDecimal)) return value.toString(); - return ((BigDecimal) value).stripTrailingZeros().toString(); + return ((BigDecimal) value).stripTrailingZeros().toPlainString(); } private void chartDynamicMap(List> rows, FilterTreeObj conditionTree, Map fieldMap) {