fix(X-Pack): 定时报告导出的图表数据只有一页

This commit is contained in:
fit2cloud-chenyw
2025-04-02 09:51:53 +08:00
committed by xuwei-fit2cloud
parent 78ad164e7c
commit 1eb752e295

View File

@@ -191,8 +191,15 @@ public class CoreVisualizationExportManage {
if (StringUtils.isBlank(filterJson)) {
return new HashMap<>();
}
return JsonUtil.parseObject(filterJson, new TypeReference<Map<Long, ChartExtRequest>>() {
Map<Long, ChartExtRequest> extRequestMap = JsonUtil.parseObject(filterJson, new TypeReference<Map<Long, ChartExtRequest>>() {
});
extRequestMap.forEach((key, chartExtRequest) -> {
chartExtRequest.setQueryFrom("panel");
chartExtRequest.setResultCount(Math.toIntExact(ExportCenterUtils.getExportLimit("view")));
chartExtRequest.setResultMode(ChartConstants.VIEW_RESULT_MODE.ALL);
chartExtRequest.setPageSize(ExportCenterUtils.getExportLimit("view"));
});
return extRequestMap;
}
private Map<String, ChartExtRequest> buildViewRequest(DataVisualizationVO panelDto, Boolean justView) {