mirror of
				https://gitee.com/binary/weixin-java-tools.git
				synced 2025-11-04 06:07:59 +08:00 
			
		
		
		
	#863 修改企业微信WxCpUserService类的相关方法的部门id参数为Long类型
This commit is contained in:
		@ -38,7 +38,7 @@ public interface WxCpUserService {
 | 
				
			|||||||
   * @param fetchChild 非必填。1/0:是否递归获取子部门下面的成员
 | 
					   * @param fetchChild 非必填。1/0:是否递归获取子部门下面的成员
 | 
				
			||||||
   * @param status     非必填。0获取全部员工,1获取已关注成员列表,2获取禁用成员列表,4获取未关注成员列表。status可叠加
 | 
					   * @param status     非必填。0获取全部员工,1获取已关注成员列表,2获取禁用成员列表,4获取未关注成员列表。status可叠加
 | 
				
			||||||
   */
 | 
					   */
 | 
				
			||||||
  List<WxCpUser> listByDepartment(Integer departId, Boolean fetchChild, Integer status) throws WxErrorException;
 | 
					  List<WxCpUser> listByDepartment(Long departId, Boolean fetchChild, Integer status) throws WxErrorException;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  /**
 | 
					  /**
 | 
				
			||||||
   * <pre>
 | 
					   * <pre>
 | 
				
			||||||
@ -51,7 +51,7 @@ public interface WxCpUserService {
 | 
				
			|||||||
   * @param fetchChild 非必填。1/0:是否递归获取子部门下面的成员
 | 
					   * @param fetchChild 非必填。1/0:是否递归获取子部门下面的成员
 | 
				
			||||||
   * @param status     非必填。0获取全部员工,1获取已关注成员列表,2获取禁用成员列表,4获取未关注成员列表。status可叠加
 | 
					   * @param status     非必填。0获取全部员工,1获取已关注成员列表,2获取禁用成员列表,4获取未关注成员列表。status可叠加
 | 
				
			||||||
   */
 | 
					   */
 | 
				
			||||||
  List<WxCpUser> listSimpleByDepartment(Integer departId, Boolean fetchChild, Integer status) throws WxErrorException;
 | 
					  List<WxCpUser> listSimpleByDepartment(Long departId, Boolean fetchChild, Integer status) throws WxErrorException;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  /**
 | 
					  /**
 | 
				
			||||||
   * 新建用户.
 | 
					   * 新建用户.
 | 
				
			||||||
 | 
				
			|||||||
@ -76,7 +76,7 @@ public class WxCpUserServiceImpl implements WxCpUserService {
 | 
				
			|||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  @Override
 | 
					  @Override
 | 
				
			||||||
  public List<WxCpUser> listByDepartment(Integer departId, Boolean fetchChild, Integer status) throws WxErrorException {
 | 
					  public List<WxCpUser> listByDepartment(Long departId, Boolean fetchChild, Integer status) throws WxErrorException {
 | 
				
			||||||
    String url = "https://qyapi.weixin.qq.com/cgi-bin/user/list?department_id=" + departId;
 | 
					    String url = "https://qyapi.weixin.qq.com/cgi-bin/user/list?department_id=" + departId;
 | 
				
			||||||
    String params = "";
 | 
					    String params = "";
 | 
				
			||||||
    if (fetchChild != null) {
 | 
					    if (fetchChild != null) {
 | 
				
			||||||
@ -98,7 +98,7 @@ public class WxCpUserServiceImpl implements WxCpUserService {
 | 
				
			|||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  @Override
 | 
					  @Override
 | 
				
			||||||
  public List<WxCpUser> listSimpleByDepartment(Integer departId, Boolean fetchChild, Integer status) throws WxErrorException {
 | 
					  public List<WxCpUser> listSimpleByDepartment(Long departId, Boolean fetchChild, Integer status) throws WxErrorException {
 | 
				
			||||||
    String url = "https://qyapi.weixin.qq.com/cgi-bin/user/simplelist?department_id=" + departId;
 | 
					    String url = "https://qyapi.weixin.qq.com/cgi-bin/user/simplelist?department_id=" + departId;
 | 
				
			||||||
    String params = "";
 | 
					    String params = "";
 | 
				
			||||||
    if (fetchChild != null) {
 | 
					    if (fetchChild != null) {
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user