liupeng 5 gadi atpakaļ
vecāks
revīzija
d52174c097

+ 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) {
 		}
 	}
+	
+	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 {
 		return userService.listByDepartment(departId, true, 0);