/// <summary> /// 获得某个用户的所有权限列表 /// </summary> /// <param name="userInfo">用户</param> /// <param name="userId">用户主键</param> /// <param name="companyId">公司主键</param> /// <param name="fromCache">是否从缓存读取</param> /// <returns>数据表</returns> public List <BaseModuleEntity> GetPermissionListByUser(BaseUserInfo userInfo, string systemCode, string userId, string companyId, bool fromCache) { List <BaseModuleEntity> result = new List <BaseModuleEntity>(); var parameter = ServiceInfo.Create(userInfo, MethodBase.GetCurrentMethod()); ServiceUtil.ProcessUserCenterReadDb(userInfo, parameter, (dbHelper) => { var permissionManager = new BasePermissionManager(dbHelper, userInfo); result = permissionManager.GetPermissionListByUser(systemCode, userId, companyId, fromCache); }); return(result); }