|
@@ -153,11 +153,15 @@ public class WXCpUserUtil {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
- public static void delete(String userId) {
|
|
|
+ public static void delete(String userId, String email) {
|
|
|
try {
|
|
|
userService.delete(userId);
|
|
|
} catch (WxErrorException e) {
|
|
|
}
|
|
|
+ try {
|
|
|
+ userService.delete(email);
|
|
|
+ } catch (WxErrorException e) {
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
public static List<WxCpUser> listByDepartment(Long departId) throws WxErrorException {
|
|
@@ -181,6 +185,6 @@ public class WXCpUserUtil {
|
|
|
}
|
|
|
|
|
|
public static void main(String[] args) throws WxErrorException {
|
|
|
- System.out.println(getByIdOrEmail("1188", "danny.cai@cmcinc.cn"));
|
|
|
+ System.out.println(getByIdOrEmail("kevin.wang@cmcpix.com", "kevin.wang@cmcpix.com"));
|
|
|
}
|
|
|
}
|