fix 导出文件名字调整

master
Todking 3 years ago
parent 7577ba00b5
commit 7c190d0c34

@ -87,10 +87,13 @@ public class ApsNoticeClientsServiceImpl implements ApsNoticeClientsService {
try {
ApsNotice apsNotice = apsNoticeMapper.getApsNoticesById(id);
String fileName = apsNotice.getTitle() + "(" + df.format(new Date()) + ").xlsx";
fileName = new String(fileName.getBytes("gbk"), "iso8859-1");
os = response.getOutputStream();
response.reset();
response.setHeader("Content-disposition", "attachment; filename = " + URLEncoder.encode(fileName, "UTF-8"));
response.setHeader("Content-disposition", "attachment; filename = " + fileName);
response.setContentType("application/octet-streem");
//创建表格工作空间

Loading…
Cancel
Save