Merge pull request #3541 from dataease/pr@dev@fix_export_view_data

fix(定时报告): resultMode增加非空判断
This commit is contained in:
Junjun 2022-10-31 15:30:03 +08:00 committed by GitHub
commit a3bef9c983
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -64,7 +64,10 @@ public class ViewExportExcel {
Map map = gson.fromJson(panelStyle, Map.class);
Map panelMap = (LinkedTreeMap) map.get("panel");
double resultCount = Double.parseDouble(panelMap.get("resultCount").toString());
String resultMode = panelMap.get("resultMode").toString();
String resultMode = null;
if (ObjectUtils.isNotEmpty(panelMap.get("resultMode"))) {
resultMode = panelMap.get("resultMode").toString();
}
Map<String, ChartExtRequest> result = new HashMap<>();
Map<String, List<ChartExtFilterRequest>> panelFilters = justView ? FilterBuildTemplate.buildFilters(components) : FilterBuildTemplate.buildEmpty(components);