#863 修改企业微信WxCpUserService类的相关方法的部门id参数为Long类型

This commit is contained in:
Binary Wang 2018-12-07 20:28:10 +08:00
parent 9b5a9eb821
commit 896a4affdd
2 changed files with 4 additions and 4 deletions

View File

@ -38,7 +38,7 @@ public interface WxCpUserService {
* @param fetchChild 非必填1/0是否递归获取子部门下面的成员
* @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>
@ -51,7 +51,7 @@ public interface WxCpUserService {
* @param fetchChild 非必填1/0是否递归获取子部门下面的成员
* @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;
/**
* 新建用户.

View File

@ -76,7 +76,7 @@ public class WxCpUserServiceImpl implements WxCpUserService {
}
@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 params = "";
if (fetchChild != null) {
@ -98,7 +98,7 @@ public class WxCpUserServiceImpl implements WxCpUserService {
}
@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 params = "";
if (fetchChild != null) {