예제 #1
0
 @Override
 public boolean saveOrUpdateUser(User user) {
   boolean flag = false;
   try {
     userDao.saveOrUpdateUser(user);
     flag = true;
   } catch (Exception e) {
     throw new RuntimeException("保存或更新用户信息出错");
   }
   return flag;
 }
예제 #2
0
 @Override
 public List<User> pageUserList() {
   return userDao.pageUserList();
 }
예제 #3
0
 @Override
 public List<User> findCache2() {
   return userDao.findCache2();
 }
예제 #4
0
 public List<User> findCache() {
   return userDao.findCache();
 }
예제 #5
0
 @Override
 public User findById(Integer id) {
   return userDao.findById(id);
 }
예제 #6
0
 @Override
 public void save(User user) {
   userDao.save(user);
 }
예제 #7
0
 @Override
 public List<User> findAll() {
   List<User> findAll = userDao.findAll();
   System.out.println("service:--" + findAll);
   return userDao.findAll();
 }