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