|
@@ -144,6 +144,14 @@ public class WXCpUserUtil {
|
|
} catch (WxErrorException e) {
|
|
} catch (WxErrorException e) {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ public static void updateUnable(String userId) throws WxErrorException {
|
|
|
|
+ WxCpUser wxUser = getById(userId);
|
|
|
|
+ if(wxUser != null) {
|
|
|
|
+ wxUser.setEnable(0);
|
|
|
|
+ updateUser(wxUser);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
|
|
public static List<WxCpUser> listByDepartment(Long departId) throws WxErrorException {
|
|
public static List<WxCpUser> listByDepartment(Long departId) throws WxErrorException {
|
|
return userService.listByDepartment(departId, true, 0);
|
|
return userService.listByDepartment(departId, true, 0);
|