Example #1
0
 public List<UserVo> nameSearch(int page, String name) {
   List<UserVo> list = userDao.nameSearch(name);
   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> nameMembers(String name) {
   List<UserVo> list = userDao.nameSearch(name);
   return list;
 }
Example #3
0
 public List<UserVo> idMembers(String id) {
   List<UserVo> list = userDao.idSearch(id);
   return list;
 }
Example #4
0
 public List<UserVo> getMembers() {
   List<UserVo> list = userDao.getMember();
   return list;
 }
Example #5
0
 public void modify(UserVo vo) {
   userDao.update(vo);
 }
Example #6
0
 public UserVo login(String id, String password) {
   UserVo vo = userDao.getLogin(id, password);
   return vo;
 }
Example #7
0
 public void join(UserVo vo) {
   userDao.insert(vo);
 }