Example #1
0
 public List<UserVo> idSearch(int page, String id) {
   List<UserVo> list = userDao.idSearch(id);
   int total = list.size();
   int p = (page - 1) * 20; // start
   int end = p + 20; // end
   List<UserVo> list1 = new ArrayList<UserVo>();
   for (int i = p; i < end; i++) {
     if (i == total) {
       break;
     } else {
       list1.add(list.get(i));
     }
   }
   return list1;
 }
Example #2
0
 public List<UserVo> idMembers(String id) {
   List<UserVo> list = userDao.idSearch(id);
   return list;
 }