public AddTagUsersResponse addTagUsers(Integer tagid, List<String> users, List<Integer> partys){
        BeanUtil.requireNonNull(tagid, "tagid不能为空！");
        if((users == null || users.size() == 0) && (partys == null || partys.size() == 0)){
            throw new WeixinException("userlist、partylist不能同时为空！");
        }
        if(users != null && users.size() > 1000){
            throw new WeixinException("userlist单次请求长度不能大于1000");
        }
        if(partys != null && partys.size() > 100){
            throw new WeixinException("partylist单次请求长度不能大于100");
        }
        AddTagUsersResponse response;
        String url = BASE_API_URL + "cgi-bin/tag/addtagusers?access_token=#";
        final Map<String, Object> params = new HashMap<String, Object>();
        params.put("tagid", tagid);
        params.put("userlist", users);
        params.put("partylist", partys);
        BaseResponse r = executePost(url, JSONUtil.toJson(params));
        String jsonResult = isSuccess(r.getErrcode()) ? r.getErrmsg() : r.toJsonString();
        response = JSONUtil.toBean(jsonResult, AddTagUsersResponse.class);
        return response;
    }
public AddTagUsersResponse addTagUsers ( Integer tagid , List < String > users , List < Integer > partys ) { BeanUtil . requireNonNull ( tagid , "tagid不能为空！" ) ; if ( ( users == null || users . size ( ) == 0 ) && ( partys == null || partys . size ( ) == 0 ) ) { throw new WeixinException ( "userlist、partylist不能同时为空！" ) ; } if ( users != null && users . size ( ) > 1000 ) { throw new WeixinException ( "userlist单次请求长度不能大于1000" ) ; } if ( partys != null && partys . size ( ) > 100 ) { throw new WeixinException ( "partylist单次请求长度不能大于100" ) ; } AddTagUsersResponse response ; String url = BASE_API_URL + "cgi-bin/tag/addtagusers?access_token=#" ; final Map < String , Object > params = new HashMap < String , Object > ( ) ; params . put ( "tagid" , tagid ) ; params . put ( "userlist" , users ) ; params . put ( "partylist" , partys ) ; BaseResponse r = executePost ( url , JSONUtil . toJson ( params ) ) ; String jsonResult = isSuccess ( r . getErrcode ( ) ) ? r . getErrmsg ( ) : r . toJsonString ( ) ; response = JSONUtil . toBean ( jsonResult , AddTagUsersResponse . class ) ; return response ; }
增加标签成员。userlist与partylist非必须，但不能同时为空
@param tagid 目标标签id。必填
@param users 企业成员ID列表。单次请求长度不能超过1000
@param partys 企业部门ID列表。单次请求长度不能超过100
@return 操作结果