//分页处理 for (int i = 0; i < mapList.size(); ) { String fileName = SrpStringUtil.getUUID(); //不够10条 直接取完 if (LastIndex >= mapList.size()) { //总共多少条 LastIndex = mapList.size(); List> sourceList = mapList.subList(i, LastIndex); exportMatchingImageV2(fileName, fileUrl, fileFomart, sourceList, isShow); resultMap.add(fileName); //直接gai束 break; } else { //先取第一页 List> sourceList = mapList.subList(i, LastIndex); //下一页的开始 10 19 i = LastIndex; //下一页的结束 19 28 LastIndex = i + (pageSize - 1); exportMatchingImageV2(fileName, fileUrl, fileFomart, sourceList, isShow); resultMap.add(fileName); } }
上一篇 org.apache.commons.collections工具类使用时需要避免的坑,A集合B集合的交集C,A与C的补集、并集、集合是否相等?
下一篇 全球及中国RFID库存管理系统行业研究及十四五规划分析报告
版权所有 (c)2021-2022 MSHXW.COM
ICP备案号:晋ICP备2021003244-6号