diff --git a/core/core-backend/src/main/java/io/dataease/chart/manage/ChartDataManage.java b/core/core-backend/src/main/java/io/dataease/chart/manage/ChartDataManage.java index e78c46ae06..90c701df5a 100644 --- a/core/core-backend/src/main/java/io/dataease/chart/manage/ChartDataManage.java +++ b/core/core-backend/src/main/java/io/dataease/chart/manage/ChartDataManage.java @@ -689,7 +689,7 @@ public class ChartDataManage { if (datasetTableField == null) { continue; } - if (Objects.equals(datasetTableField.getDatasetTableId(), view.getTableId())) { + if (Objects.equals(datasetTableField.getDatasetGroupId(), view.getTableId())) { if (ObjectUtils.isNotEmpty(filterRequest.getViewIds())) { if (filterRequest.getViewIds().contains(view.getId())) { filterRequest.getDatasetTableFieldList().add(datasetTableField);