forked from github/dataease
Merge pull request #3541 from dataease/pr@dev@fix_export_view_data
fix(定时报告): resultMode增加非空判断
This commit is contained in:
commit
a3bef9c983
@ -64,7 +64,10 @@ public class ViewExportExcel {
|
|||||||
Map map = gson.fromJson(panelStyle, Map.class);
|
Map map = gson.fromJson(panelStyle, Map.class);
|
||||||
Map panelMap = (LinkedTreeMap) map.get("panel");
|
Map panelMap = (LinkedTreeMap) map.get("panel");
|
||||||
double resultCount = Double.parseDouble(panelMap.get("resultCount").toString());
|
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, ChartExtRequest> result = new HashMap<>();
|
||||||
Map<String, List<ChartExtFilterRequest>> panelFilters = justView ? FilterBuildTemplate.buildFilters(components) : FilterBuildTemplate.buildEmpty(components);
|
Map<String, List<ChartExtFilterRequest>> panelFilters = justView ? FilterBuildTemplate.buildFilters(components) : FilterBuildTemplate.buildEmpty(components);
|
||||||
|
Loading…
Reference in New Issue
Block a user