diff --git a/core/core-backend/src/main/java/io/dataease/dataset/manage/DatasetTableFieldManage.java b/core/core-backend/src/main/java/io/dataease/dataset/manage/DatasetTableFieldManage.java index 9489bf96b0..d597484d43 100644 --- a/core/core-backend/src/main/java/io/dataease/dataset/manage/DatasetTableFieldManage.java +++ b/core/core-backend/src/main/java/io/dataease/dataset/manage/DatasetTableFieldManage.java @@ -162,8 +162,8 @@ public class DatasetTableFieldManage { public Map> selectByDatasetGroupIds(List ids) { Map> map = new HashMap<>(); - QueryWrapper wrapper = new QueryWrapper<>(); for (Long id : ids) { + QueryWrapper wrapper = new QueryWrapper<>(); wrapper.eq("dataset_group_id", id); wrapper.eq("checked", true); wrapper.isNull("chart_id");