|
@@ -88,7 +88,6 @@ public class UserControlEarlyWarningListLogServiceImpl implements UserControlEar
|
|
|
|
|
|
@Override
|
|
|
public void getListLogExcel(UserEarlyWarningLogQu dto, HttpServletResponse response) {
|
|
|
- response.reset();//清缓存
|
|
|
HashMap<String, Object> map = new HashMap<>(2);
|
|
|
if (dto.getStatus() == null) {
|
|
|
dto.setStatus(0);
|
|
@@ -100,7 +99,7 @@ public class UserControlEarlyWarningListLogServiceImpl implements UserControlEar
|
|
|
response.setContentType("application/vnd.ms-excel");
|
|
|
response.setCharacterEncoding("utf-8");
|
|
|
try {
|
|
|
- String fileName = URLEncoder.encode("测试", "UTF-8").replaceAll("\\+", "%20");
|
|
|
+ String fileName = URLEncoder.encode("warning_record", "UTF-8").replaceAll("\\+", "%20");
|
|
|
response.setHeader("Content-disposition", "attachment;filename=" + fileName + ".xlsx");
|
|
|
EasyExcel.write(response.getOutputStream(), UserEarlyWarningLogExcel.class).sheet("预警信息").doWrite(listVo);
|
|
|
} catch (Exception e) {
|