示例#1
0
 // get userList byStatus
 public List<User> getUsersByStatus(int currentPage, int pageSize, int status) {
   List<User> userList = user.getUserByStatus(currentPage, pageSize, status).getList();
   User.formatUser(userList);
   return userList.isEmpty() ? null : userList;
 }
示例#2
0
 /**
  * 以下为管理员对用户的操作
  *
  * <p>show user List getUsersBypage
  */
 public List<User> getUsersBypage(int currentPage, int pageSize) {
   List<User> userList = user.getUsersByPage(currentPage, pageSize).getList();
   User.formatUser(userList);
   return userList;
 }