示例#1
0
 @Override
 public void updateUser(int id, String password, String email, long phone) {
   TbUser user = new TbUser();
   user = userdao.queryUser(id);
   user.setPassword(password);
   user.setPhone(phone);
   user.setEmail(email);
   userdao.update(user);
 }
 @Override
 public void update(User user) {
   userDao.update(user);
 }