/// <summary> /// 获取玩家下注信息 /// </summary> /// <param name="matchResult"></param> /// <returns></returns> public static List<PlayerBet> GetPlayerBetsByMatchId(MatchResult matchResult) { List<PlayerBet> playerBets = null; try { // 创建下注数据访问对象 BetService betService = new BetService(); playerBets = betService.GetPlayerBetsByMatchId(matchResult.get_HomeName(), matchResult.get_AwayName(), matchResult.get_MatchDate()); /***if (string.IsNullOrEmpty(matchResult.get_ID())) { playerBets = betService.GetPlayerBetsByMatchId(matchResult.get_HomeName(), matchResult.get_AwayName(), matchResult.get_MatchDate()); } else { playerBets = betService.GetPlayerBetsByMatchId(matchResult.get_ID()); }***/ } catch (Exception e) { throw; } return playerBets; }
/// <summary> /// 获取ghost未结算的下注信息 /// </summary> /// <param name="matchResult"></param> /// <returns></returns> public static List<GhostBet> GetGhostBetsByMatchId(MatchResult matchResult) { List<GhostBet> ghostBets = null; try { // 创建下注数据访问对象 BetService betService = new BetService(); ghostBets = betService.GetGhostBetsByMatchId(matchResult.get_HomeName(), matchResult.get_AwayName(), matchResult.get_MatchDate()); } catch (Exception e) { throw; } return ghostBets; }