Merge remote-tracking branch 'origin/develop' into develop

This commit is contained in:
wangshilong 2024-12-12 20:55:33 +08:00
commit 8480b40ee8
1 changed files with 1 additions and 0 deletions

View File

@ -269,6 +269,7 @@ public class DeviceServiceImpl extends ServiceImpl<DeviceDao, Device> implements
try {
ServletOutputStream outputStream = response.getOutputStream();
fileName = URLEncoder.encode(device.getGasWell().getName()+"|"+simpleDateFormat.format(new Date()), StandardCharsets.UTF_8).replaceAll("\\+", "%20");
response.setHeader("Access-Control-Expose-Headers","Content-Disposition");
response.setHeader("Content-disposition", "attachment;filename*=utf-8''" + fileName + ".xlsx");
EasyExcel.write(outputStream)
// 这里放入动态头