薪酬系统-福利档案,福利档案及模板导出参数设置优化

This commit is contained in:
sy 2023-11-15 10:17:12 +08:00
parent 2c12b10171
commit e0fcff792d
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();