Exemplo n.º 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);
 }
Exemplo n.º 2
0
 public String execute() {
   TbUser user = new TbUser();
   user.setId(1);
   user.setName("hong");
   ActionContext.getContext().getSession().put("user", user);
   // System.out.println(ActionContext.getContext().getSession().get("userid").toString());
   // System.out.println(meetingService.serachWaitMeeting().size());
   return "success";
 }
Exemplo n.º 3
0
 @Override
 public void updateTbUser(int id, String department, String work) {
   TbUser user = new TbUser();
   user = userdao.queryUser(id);
   user.setTbDepartment((TbDepartment) userdao.loadTbDepartment(department).get(0));
   if (work.equals("ÔÚÖ°")) {
     user.setWorkingState(true);
   } else {
     user.setWorkingState(false);
   }
   userdao.updatesave(user);
 }
Exemplo n.º 4
0
 public void saveUser(int id) {
   TbUserApplication userapplication = new TbUserApplication();
   TbUser user = new TbUser();
   userapplication = userdao.queryUserApplication(id);
   user.setId(userapplication.getId());
   user.setName(userapplication.getName());
   user.setPassword(userapplication.getPassword());
   user.setGender(userapplication.getGender());
   user.setTbDepartment(userapplication.getTbDepartment());
   user.setPhone(userapplication.getPhone());
   user.setEmail(userapplication.getEmail());
   user.setWorkingState(true);
   user.setIconName("gongfu.jpg");
   userdao.saveUser(user);
 }