8000 #863 修改企业微信WxCpUserService类的相关方法的部门id参数为Long类型 · linlinjava/WxJava@896a4af · GitHub
[go: up one dir, main page]

Skip to content

Commit 896a4af

Browse files
committed
binarywang#863 修改企业微信WxCpUserService类的相关方法的部门id参数为Long类型
1 parent 9b5a9eb commit 896a4af

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpUserService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public interface WxCpUserService {
3838
* @param fetchChild 非必填。1/0:是否递归获取子部门下面的成员
3939
* @param status 非必填。0获取全部员工,1获取已关注成员列表,2获取禁用成员列表,4获取未关注成员列表。status可叠加
4040
*/
41-
List<WxCpUser> listByDepartment(Integer departId, Boolean fetchChild, Integer status) throws WxErrorException;
41+
List<WxCpUser> listByDepartment(Long departId, Boolean fetchChild, Integer status) throws WxErrorException;
4242

4343
/**
4444
* <pre>
@@ -51,7 +51,7 @@ public interface WxCpUserService {
5151
* @param fetchChild 非必填。1/0:是否递归获取子部门下面的成员
5252
* @param status 非必填。0获取全部员工,1获取已关注成员列表,2获取禁用成员列表,4获取未关注成员列表。status可叠加
5353
*/
54-
List<WxCpUser> listSimpleByDepartment(Integer departId, Boolean fetchChild, Integer status) throws WxErrorException;
54+
List<WxCpUser> listSimpleByDepartment(Long departId, Boolean fetchChild, Integer status) throws WxErrorException;
5555

5656
/**
5757
* 新建用户.

weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpUserServiceImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public WxCpUser getById(String userid) throws WxErrorException {
7676
}
7777

7878
@Override
79-
public List<WxCpUser> listByDepartment(Integer departId, Boolean fetchChild, Integer status) throws WxErrorException {
79+
public List<WxCpUser> listByDepartment(Long departId, Boolean fetchChild, Integer status) throws WxErrorException {
8080
String url = "https://qyapi.weixin.qq.com/cgi-bin/user/list?department_id=" + departId;
8181
String params = "";
8282
if (fetchChild != null) {
@@ -98,7 +98,7 @@ public List<WxCpUser> listByDepartment(Integer departId, Boolean fetchChild, Int
9898
}
9999

100100
@Override
101-
public List<WxCpUser> listSimpleByDepartment(Integer departId, Boolean fetchChild, Integer status) throws WxErrorException {
101+
public List<WxCpUser> listSimpleByDepartment(Long departId, Boolean fetchChild, Integer status) throws WxErrorException {
102102
String url = "https://qyapi.weixin.qq.com/cgi-bin/user/simplelist?department_id=" + departId;
103103
String params = "";
104104
if (fetchChild != null) {

0 commit comments

Comments
 (0)
0