Example #1
0
  /**
   * 发起测评 -- 跨单位
   *
   * @return
   */
  public String outUserList() {
    Page page = this.userManager.findOutPage(query, this.getCurrUser().getDeptIDs());
    String userId = query.getId();
    List<User> userList = page.getResult();

    for (User user : userList) {
      String uId = user.getId();
      if (!isNullOrEmptyString(userId)) {
        if (userId.indexOf(uId) != -1) {
          user.setChecked("1");
        }
      }
    }

    super.saveCurrentPage(page, query);
    return "outUserList";
  }
Example #2
0
  public String sponsorList() {
    Page page = this.userManager.findHead(query);
    String userId = query.getId();
    List<User> usersList = page.getResult();

    for (User user : usersList) {
      String uId = user.getId();
      if (!isNullOrEmptyString(userId)) {
        if (userId.indexOf(uId) != -1) {
          user.setChecked("1");
        }
      }
    }

    this.saveCurrentPage(page, query);
    return "sponsorList";
  }