@ApiOperation("多sheep多Excel")
@RequestMapping("/manySheepmanyExecl")
public ResultForm manySheepmanyExecl(HttpServletResponse response) throws Exception {
String zipName = "压缩包名称";
//创建流
ServletOutputStream out = response.getOutputStream();
//封装响应流
ZipOutputStream zipOutputStream = excelZipUtils.zipResponseHeader(response, out, zipName);
try {
//循环几次就有几个Excel 每循环一次就是一个Excel
for (int i = 0; i <= 2; i++) { //3个Excel
//设置头部
List<ExcelHeader> headers = pavementExportField();
//拼装sheep页集合
List<Map> excelPavementDataList = new ArrayList<>();
//循环sheep页中的数据
for (int y = 0; y <=3 ; y++) { //4个sheep页
//组装sheet页集合
List<Map<String, Ob
POI多sheep页多Excel导出
最新推荐文章于 2024-09-09 08:31:20 发布