需要引入Jar包 com.spire.xls.Workbook
这种方式只能导出三页(因为收费)
Jar包地址
提取码:ut4n
public Result> teamSourceExport(String startTime,String endTime, String type, HttpServletRequest httpServletRequest, HttpServletResponse response) throws Exception {
response.setContentType("application/octet-stream");
//取到要导出的模板
TemplateExportParams params = new TemplateExportParams("/opt/home/package/template/团队分类统计报表.xls", true);
Map map = new HashMap();
List
暑期编程PK赛
得CSDN机械键盘等精美礼品!