| | |
| | | Page<UmsAdminLoginLog> umsAdminLoginLogPage = new Page<>(); |
| | | umsAdminLoginLogPage.setCurrent(logQueryParams.getCurrent()); |
| | | umsAdminLoginLogPage.setSize(logQueryParams.getSize()); |
| | | String fileName ="日志数据"; |
| | | response.setContentType("application/vnd.ms-excel"); |
| | | response.setCharacterEncoding("utf-8"); |
| | | response.setHeader("Content-disposition", "attachment;filename=" + LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd")) + URLEncoder.encode(fileName + ".xlsx", "utf-8")); |
| | | response.setHeader("Content-disposition", "attachment;filename=" + LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd")) + URLEncoder.encode( ".xlsx", "utf-8")); |
| | | EasyExcel |
| | | .write(response.getOutputStream(), UmsAdminLogVO.class) |
| | | .sheet("数据") |