/**
   * 保存工作组添加用户
   *
   * @return
   * @throws Exception
   */
  @Action("work-group-workgroupAddUser")
  public String workgroupAddUser() throws Exception {
    if (StringUtils.isNotEmpty(ids)) {
      userIds = new ArrayList<Long>();
      User user = userManager.getUserById(ContextUtils.getUserId());
      if ("ALLCOMPANYID".equals(ids)) { // 全公司
        userIds.add(0l);
      } else {
        if (roleManager.hasSystemAdminRole(user)) {
          for (String str : ids.split(",")) {
            userIds.add(Long.valueOf(str));
          }
        } else if (roleManager.hasBranchAdminRole(user)) {
          userIds = ApiFactory.getAcsService().getTreeUserIds(ids);
        }
      }

      String addUsers = workGroupManager.workgroupAddUser(workGroupId, userIds, 0);

      if (StringUtils.isNotEmpty(addUsers))
        ApiFactory.getBussinessLogService()
            .log("工作组管理", "工作组添加人员:" + addUsers, ContextUtils.getSystemId("acs"));
    }
    this.renderText("ok");
    return null;
  }
 /**
  * 工作组去除用户(小写字母g)
  *
  * @return
  * @throws Exception
  */
 @Action("work-group-removeWorkgroupToUsers")
 public String removeWorkgroupToUsers() throws Exception {
   String removeUsers = workGroupManager.workgroupAddUser(workGroupId, userIds, 1);
   if (StringUtils.isNotEmpty(removeUsers))
     ApiFactory.getBussinessLogService()
         .log("工作组管理", "工作组移除人员:" + removeUsers, ContextUtils.getSystemId("acs"));
   return getUserByWorkGroup();
 }