5
触发场景描述
下面是导出有问题的表格文件 1577274701056.xlsx
使用版本
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>easyexcel</artifactId>
<version>2.1.3</version>
</dependency>
触发Bug的代码
List<NumberExportData> numberExportData = numberManagerService.numberExport(cloudAccountId, mode,
telX, areaCode, buyStartTime, buyEndTime);
LOGGER.info("numberExport controller result size: {}", numberExportData.size());
response.setContentType("application/vnd.ms-excel");
response.setCharacterEncoding("utf-8");
response.setHeader("Content-disposition",
"attachment;filename=" + System.currentTimeMillis() + ".xlsx");
EasyExcel.write(response.getOutputStream(), NumberExportData.class).excelType(ExcelTypeEnum.XLSX)
.sheet("号码列表").doWrite(numberExportData);
提示的异常或者没有达到的效果