您当前的位置: 首页 > 

小志的博客

暂无认证

  • 0浏览

    0关注

    1217博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

poi根据模板导出多个excel文件并压缩成.zip格式

小志的博客 发布时间:2018-12-29 09:20:01 ,浏览量:0

/**
	  * poi导出多个excel文件并压缩层.zip
	  * 参数 startnum 开始编号
	  *    endnum 结束编号
	  *   通过输入的编号范围查询出需要导出的数据
	  * */
	@RequestMapping(value = "/exportFixByMonths", method = RequestMethod.GET)
	public void exportFixByMonths(ActivitiesBean bean,HttpServletResponse response,HttpServletRequest request,
			@RequestParam String startnum,@RequestParam String endnum) throws IOException {
		int STARTNUM= Integer.parseInt(startnum);
		int ENDNUM=Integer.parseInt(endnum);
		List srcfile = new ArrayList();  //声明一个集合,用来存放多个Excel文件路径及名称
		for(int i=STARTNUM;i            
关注
打赏
1661269038
查看更多评论
0.0482s