摘要: package com.first.springboot.util; import com.alibaba.excel.EasyExcel; import com.alibaba.excel.ExcelWriter; import com.alibaba.excel.write.builder.Ex 阅读全文
posted @ 2022-03-14 01:17 yingx 阅读(286) 评论(0) 推荐(0)
摘要: /page每次加一,当等于obj的值时返回空,代码结束; if (((int) obj) == page) { return null; } int start=-1; if (page==1){ start=0; } else { start=(page-1)*10000; } //不是空时:一直 阅读全文
posted @ 2022-03-13 11:20 yingx 阅读(659) 评论(0) 推荐(0)
摘要: //大前提,很重要!!假设导出的Excel数据是List<A> aList //下面代码,我类 统一用A代替,需要导出的原数据用aList代替 //分别是 totalPage是总页数,pageSize 页码长度 int totalPage = (aList.size() / 10000) + 1; 阅读全文
posted @ 2022-03-13 11:10 yingx 阅读(239) 评论(0) 推荐(0)