Browse Source

信件统计导出

master
laishajiang 2 years ago
parent
commit
d003670fd3
  1. 6
      mailbox-lan/src/main/java/com/biutag/lan/service/DataService.java

6
mailbox-lan/src/main/java/com/biutag/lan/service/DataService.java

@ -391,7 +391,7 @@ public class DataService extends ServiceImpl<DataMapper, Mail> {
response.setCharacterEncoding("UTF-8");
try (OutputStream out = response.getOutputStream()) {
// 使用EasyExcel写入数据到输出流
ExcelWriter excelWriter = EasyExcel.write(out).build();
ExcelWriter excelWriter = EasyExcel.write(out).inMemory(Boolean.TRUE).build();
WriteSheet writeSheet = EasyExcel.writerSheet("局长信箱即接即办信件三率统计").head(head).build();
excelWriter.write(data1, writeSheet);
excelWriter.finish();
@ -445,7 +445,7 @@ public class DataService extends ServiceImpl<DataMapper, Mail> {
response.setCharacterEncoding("UTF-8");
try (OutputStream out = response.getOutputStream()) {
// 使用EasyExcel写入数据到输出流
ExcelWriter excelWriter = EasyExcel.write(out).build();
ExcelWriter excelWriter = EasyExcel.write(out).inMemory(Boolean.TRUE).build();
WriteSheet writeSheet = EasyExcel.writerSheet("局长信箱即接即办信件三率统计").head(head).automaticMergeHead(true).build();
excelWriter.write(data1, writeSheet);
excelWriter.finish();
@ -539,7 +539,7 @@ public class DataService extends ServiceImpl<DataMapper, Mail> {
response.setCharacterEncoding("UTF-8");
try (OutputStream out = response.getOutputStream()) {
// 使用EasyExcel写入数据到输出流
ExcelWriter excelWriter = EasyExcel.write(out).build();
ExcelWriter excelWriter = EasyExcel.write(out).inMemory(Boolean.TRUE).build();
WriteSheet writeSheet = EasyExcel.writerSheet("局长信箱即接即办信件三率统计").head(head).automaticMergeHead(true).build();
excelWriter.write(data1, writeSheet);
excelWriter.finish();

Loading…
Cancel
Save