/// <summary> /// 获得角色中的组织机构主键 /// </summary> /// <param name="userInfo">用户</param> /// <param name="roleId">角色主键</param> /// <returns>组织机构主键</returns> public string[] GetRoleOrganizeIds(BaseUserInfo userInfo, string roleId) { string[] result = null; var parameter = ServiceInfo.Create(userInfo, MethodBase.GetCurrentMethod()); ServiceUtil.ProcessUserCenterReadDb(userInfo, parameter, (dbHelper) => { var manager = new BaseOrganizeManager(dbHelper, userInfo); result = manager.GetIdsInRole(userInfo.SystemCode, roleId); }); return(result); }