예제 #1
0
 public String transferUser() {
   checkPassword();
   AdminService adminService = ServiceCacheFactory.getService(AdminService.class);
   adminService.transferUserInfo(fromUserName, toUserName);
   super.setErroCodeNum(2002);
   return SUCCESS;
 }
예제 #2
0
 public String edit() {
   checkPassword();
   AdminService adminService = ServiceCacheFactory.getService(AdminService.class);
   adminService.updateTduser(tdId, tdname, tduserid, tduser, tdcall, tdqq);
   super.setErroCodeNum(2001);
   return SUCCESS;
 }
예제 #3
0
파일: TjzAction.java 프로젝트: zgyq/yq-user
  public String execute() {
    UserService userService = ServiceCacheFactory.getServiceCache().getService(UserService.class);

    if (status == 0) {
      Gcuser gcuser = userService.getUserByUserName(super.getUserName());
      super.initPage(
          userService.getTheSameNameUserPageByCondition(
              super.getUserName(), gcuser.getName(), gcuser.getUserid(), super.getToPage(), 10));
    } else {

      if (fromUsers == null || fromUsers.size() == 0) {
        super.setErroCodeNum(6);
        return SUCCESS;
      }
      if (tp == 0) {
        userService.batchTrasferYb(fromUsers, super.getUserName(), pa2j);
      } else {
        userService.batchTrasferScores(fromUsers, super.getUserName(), pa2j);
      }
      super.setErroCodeNum(10);
    }

    return SUCCESS;
  }