if (Integer.parseInt(map.get("size").toString()) > ucUserByDeptId.size()) {
ucUsers = ucUserByDeptId;
} else if (ucUserByDeptId.size() > 0) {
int start = (Integer.parseInt(current) - 1) * (Integer.parseInt(size));
int end = (start + Integer.parseInt(size)) > iPage.getTotal() ? (int) iPage.getTotal() : start + Integer.parseInt(size);
ucUsers = ucUserByDeptId.subList(start, end);
}
有指教的地方欢迎留言