20250714 更新

This commit is contained in:
2025-07-14 14:11:48 +08:00
parent da71a8ba41
commit 706507ce9b

View File

@@ -319,9 +319,9 @@ public class ExcelOperationServiceImpl implements ExcelOperationService {
// ====== 输出到浏览器
// response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet");
// String filename = user.getOrgName() + "已受理委托信息统计" + LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyyMMddHHmmss")) + ".xlsx";
// response.setHeader("Content-Disposition", "attachment;filename=" + URLEncoder.encode(filename, StandardCharsets.UTF_8.name()));
response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet");
String filename = user.getOrgName() + "已受理委托信息统计" + LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyyMMddHHmmss")) + ".xlsx";
response.setHeader("Content-Disposition", "attachment;filename=" + URLEncoder.encode(filename, StandardCharsets.UTF_8.name()));
workbook.write(response.getOutputStream());
workbook.close();
}