liupeng 5 년 전
부모
커밋
d52174c097
1개의 변경된 파일8개의 추가작업 그리고 0개의 파일을 삭제
  1. 8 0
      code/sapparent/sapservice/src/main/java/org/fouram/core/plugin/weixin/cp/util/WXCpUserUtil.java

+ 8 - 0
code/sapparent/sapservice/src/main/java/org/fouram/core/plugin/weixin/cp/util/WXCpUserUtil.java

@@ -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);