//查询的所有数据
List<User> userList = userDao.createLambdaQuery()
.andEq(User::getPhone, Query.filterEmpty(user.getPhone()))
.andEq(User::getName, Query.filterEmpty(user.getName()))
.andEq(User::getType,"3")
.select();
List<User> users = new ArrayList<>();//装分页的list
int currIdx = (pageNo > 1 ? (pageNo - 1) * 20 : 0);
if (userList.size() > 0) {
for (int i = 0; i < 10 && i < userList.size() - currIdx; i++) {
User active = userList.get(currIdx + i);
users.add(active);
}
}