fix: 【指标卡】导出原始数据 excel 没有数据显示空白

This commit is contained in:
taojinlong 2025-01-09 16:16:59 +08:00 committed by taojinlong
parent 58521c29b1
commit 03b9ee8d90

View File

@ -108,6 +108,7 @@ public class ChartDataServer implements ChartDataApi {
if ("dataset".equals(request.getDownloadType())) {
viewDTO.setResultMode(ChartConstants.VIEW_RESULT_MODE.ALL);
viewDTO.setType("table-info");
viewDTO.setRender("antv");
List<DatasetTableFieldDTO> sourceFields = datasetFieldServer.listByDatasetGroup(viewDTO.getTableId());
List<String> fileNames = permissionManage.filterColumnPermissions(sourceFields, new HashMap<>(), viewDTO.getTableId(), null).stream().map(DatasetTableFieldDTO::getDataeaseName).collect(Collectors.toList());
sourceFields = sourceFields.stream().filter(datasetTableFieldDTO -> fileNames.contains(datasetTableFieldDTO.getDataeaseName())).collect(Collectors.toList());