/**
* 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
查看更多评论