easyExcel获取动态表头和筛选数据导出的问题:
List<Map<String, Object>> filteredExportData = mapToSelectedFields(exportData, headerFieldList);
List<List<String>> head = matchedAndTranslatedHeaders.stream()
.map(header -> Collections.singletonList(header))
.collect(Collectors.toList());
// 再次写入到本地文件
EasyExcel.write(localOutputStream, Map.class)
.sheet("导出")
.head(head)
.doWrite(filteredExportData);
其中filteredExportData的值为: [{"accountId":-890824,"businessName":传媒有限公司"},{"accountId":-890817,"businessName":"越建筑劳务有限公司"},{"accountId":100005291,"businessName":"(上海)有限公司"},{"accountId":2200017167,"businessName":"企业管理咨询有限公司"}]
head为accountId和businessName
请问为啥Excel只是输出了表头,而没有里面的内容。