/**
* List集合按指定数量分组
* @param list
* @param quantity
* @return
*/
private List<List<String>> groupListByQuantity(List<String> list, int quantity) {
List<List<String>> tempList = new ArrayList<>();
if (list == null || list.size() == 0) {
return tempList;
}
int count = 0;
while (count < list.size()) {
tempList.add(list.subList(count, Math.min((count + quantity), list.size())));
count += quantity;
}
return tempList;
}