|
|
@@ -273,9 +273,9 @@ public class AdminServiceImpl extends BaseMybatisDao<AdminMapper> implements Adm
|
|
|
List<List<Admin>> listGroup = new ArrayList<List<Admin>>();
|
|
|
int listSize = list.size();
|
|
|
//子集合的长度
|
|
|
- int toIndex = 100;
|
|
|
- for (int i = 0; i < list.size(); i += 100) {
|
|
|
- if (i + 100 > listSize) {
|
|
|
+ int toIndex = 50;
|
|
|
+ for (int i = 0; i < list.size(); i += toIndex) {
|
|
|
+ if (i + toIndex > listSize) {
|
|
|
toIndex = listSize - i;
|
|
|
}
|
|
|
List<Admin> newList = list.subList(i, i + toIndex);
|