|
|
@ -148,7 +148,7 @@ public class ImsAnalyseExampleServiceImpl extends ServiceImpl<ImsAnalyseExampleM |
|
|
|
// 这里URLEncoder.encode可以防止中文乱码 当然和easyexcel没有关系
|
|
|
|
// 这里URLEncoder.encode可以防止中文乱码 当然和easyexcel没有关系
|
|
|
|
String fileName = URLEncoder.encode( name, "UTF-8"); |
|
|
|
String fileName = URLEncoder.encode( name, "UTF-8"); |
|
|
|
response.setHeader("Content-disposition", "attachment;filename=" + fileName + ".xlsx"); |
|
|
|
response.setHeader("Content-disposition", "attachment;filename=" + fileName + ".xlsx"); |
|
|
|
if(page.getRecords()!=null){ |
|
|
|
if(ObjectUtils.isNotEmpty(page.getRecords())){ |
|
|
|
List<List<String>> head=new ArrayList<>(); |
|
|
|
List<List<String>> head=new ArrayList<>(); |
|
|
|
List<String> title = new ArrayList<>(Collections.singletonList("时间")); |
|
|
|
List<String> title = new ArrayList<>(Collections.singletonList("时间")); |
|
|
|
head.add(title); |
|
|
|
head.add(title); |
|
|
|