mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-12 20:36:50 +08:00
【新需求】案例导出文件改为.xls后缀
This commit is contained in:
@@ -214,7 +214,7 @@ public class CasesApi extends ApiBaseController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
response.setContentType("application/octet-stream");
|
response.setContentType("application/octet-stream");
|
||||||
response.setHeader("Content-disposition", "attachment;filename=cases.xlsx");
|
response.setHeader("Content-disposition", "attachment;filename=cases.xls");
|
||||||
ExportsExcelSenderUtil.export(map,exportVos, OutputStream,"yyyy-MM-dd HH:mm:ss");
|
ExportsExcelSenderUtil.export(map,exportVos, OutputStream,"yyyy-MM-dd HH:mm:ss");
|
||||||
}catch (Exception e){
|
}catch (Exception e){
|
||||||
log.error("导出失败",e.getMessage());
|
log.error("导出失败",e.getMessage());
|
||||||
|
|||||||
Reference in New Issue
Block a user