From 1e2a07d402ff1f0b6ca0c509fd331c6bea5f55af Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Tue, 20 Jan 2026 11:42:37 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A4=8D=E5=88=B6=E5=9B=BE=E8=A1=A8?= =?UTF-8?q?=E4=B8=AD=E6=90=BA=E5=B8=A6=E6=97=A7=E5=9B=BE=E8=A1=A8=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E4=BF=A1=E6=81=AF=E5=AF=BC=E8=87=B4=E9=98=88=E5=80=BC?= =?UTF-8?q?=E5=91=8A=E8=AD=A6=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../io/dataease/chart/manage/ChartViewThresholdManage.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 c8ce28385c..d50b41def2 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 @@ -44,7 +44,12 @@ public class ChartViewThresholdManage { private String convertThresholdRules(ChartViewDTO chart, String thresholdRules) { List fieldList = chartFields(chart); FilterTreeObj filterTreeObj = JsonUtil.parseObject(thresholdRules, FilterTreeObj.class); - Map fieldMap = fieldList.stream().collect(Collectors.toMap(item -> item.getId().toString(), item -> item)); + Map fieldMap = fieldList.stream() + .collect(Collectors.toMap( + item -> item.getId().toString(), + item -> item, + (existing, replacement) -> existing + )); return convertTree(filterTreeObj, fieldMap); }