常用于解决sql查询超过2100问题
<> List<List<>> (List<> listgroupSize){ length = list.size()num = ( length + groupSize - )/groupSize List<List<>> newList = ArrayList<>(num)(i = i < numi++) { fromIndex = i * groupSizetoIndex = (i+) * groupSize < length ? ( i+) * groupSize : length newList.add(list.subList(fromIndextoIndex)) } newList }