20250714 更新
This commit is contained in:
+3
-3
@@ -319,9 +319,9 @@ public class ExcelOperationServiceImpl implements ExcelOperationService {
|
|||||||
|
|
||||||
|
|
||||||
// ====== 输出到浏览器
|
// ====== 输出到浏览器
|
||||||
// response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet");
|
response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet");
|
||||||
// String filename = user.getOrgName() + "已受理委托信息统计" + LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyyMMddHHmmss")) + ".xlsx";
|
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.setHeader("Content-Disposition", "attachment;filename=" + URLEncoder.encode(filename, StandardCharsets.UTF_8.name()));
|
||||||
workbook.write(response.getOutputStream());
|
workbook.write(response.getOutputStream());
|
||||||
workbook.close();
|
workbook.close();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user