forked from github/dataease
fix(数据集): 计算预览总数时带上行权限
This commit is contained in:
parent
25d138f359
commit
0580b57721
@ -231,7 +231,8 @@ public class DatasetDataManage {
|
||||
map.put("allFields", fieldList);
|
||||
}
|
||||
map.put("sql", Base64.getEncoder().encodeToString(querySQL.getBytes()));
|
||||
map.put("total", getDatasetTotal(datasetGroupInfoDTO));
|
||||
List<LinkedHashMap<String, Object>> realTotal = (List<LinkedHashMap<String, Object>>) previewData.get("data");
|
||||
map.put("total", Math.min(getDatasetTotal(datasetGroupInfoDTO), realTotal.size()));
|
||||
return map;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user