Merge remote-tracking branch 'remotes/origin/fix/231101-福利档案及模板导出后文件损坏问题修复' into feature/231102-福利台账,补差待编辑项扩充其他可缴纳福利项

This commit is contained in:
sy 2023-11-28 16:05:29 +08:00
commit 22d749dcb3
1 changed files with 2 additions and 0 deletions

View File

@ -233,6 +233,7 @@ public class SISchemeController {
workbook.write(outputStream);
outputStream.flush();
};
response.setContentType("application/octet-stream");
return Response.ok(output)
.header("Content-disposition", "attachment;filename=" + fileName)
.header("Cache-Control", "no-cache").build();
@ -313,6 +314,7 @@ public class SISchemeController {
workbook.write(outputStream);
outputStream.flush();
};
response.setContentType("application/octet-stream");
return Response.ok(output)
.header("Content-disposition", "attachment;filename=" + fileName)
.header("Cache-Control", "no-cache").build();