public GameWinNumber_Info QueryWinNumberT4CJQ(string issuseNumber) { var manager = new CTZQ_T4CJQ_GameWinNumberManager(); var entity = manager.QueryWinNumber(issuseNumber); var info = new GameWinNumber_Info(); ObjectConvert.ConverEntityToInfo <CTZQ_T4CJQ_GameWinNumber, GameWinNumber_Info>(entity, ref info); info.GameType = entity.GameType; return(info); }
/// <summary> /// 更新开奖号 /// </summary> public void UpdateGameWinNumber(string issuseNumber, string winNumber) { this.ClearNewWinNumberCache("QueryCTZQ_GameWinNumberT14CTR9"); this.ClearNewWinNumberCache("QueryCTZQ_GameWinNumberT6BQC"); this.ClearNewWinNumberCache("QueryCTZQ_GameWinNumberT4CJQ"); if (string.IsNullOrEmpty(issuseNumber)) { return; } if (string.IsNullOrEmpty(winNumber)) { return; } if (CurrentGameType == "TR9" || CurrentGameType == "T14C") { var GameWinNumberManager = new CTZQ_T14C_GameWinNumberManager(); var result = GameWinNumberManager.QueryWinNumber(issuseNumber); if (result == null) { throw new Exception("此期号未找到:" + issuseNumber); } result.WinNumber = winNumber; result.CreateTime = DateTime.Now.Date; GameWinNumberManager.UpdateCTZQ_T14C_GameWinNumber(result); } if (CurrentGameType == "T6BQC") { var GameWinNumberManager = new CTZQ_T6BQC_GameWinNumberManager(); var result = GameWinNumberManager.QueryWinNumber(issuseNumber); if (result == null) { throw new Exception("此期号未找到:" + issuseNumber); } var tempListWinNumber = result.WinNumber.Split(','); result.WinNumber = winNumber; result.CreateTime = DateTime.Now.Date; GameWinNumberManager.UpdateCTZQ_T6BQC_GameWinNumber(result); } if (CurrentGameType == "T4CJQ") { var GameWinNumberManager = new CTZQ_T4CJQ_GameWinNumberManager(); var result = GameWinNumberManager.QueryWinNumber(issuseNumber); if (result == null) { throw new Exception("此期号未找到:" + issuseNumber); } result.WinNumber = winNumber; result.CreateTime = DateTime.Now.Date; GameWinNumberManager.UpdateCTZQ_T4CJQ_GameWinNumber(result); } }
/// <summary> /// 添加开奖号 /// </summary> public void ImportWinNumber(string issuseNumber, string winNumber) { this.ClearNewWinNumberCache("QueryCTZQ_GameWinNumberT14CTR9"); this.ClearNewWinNumberCache("QueryCTZQ_GameWinNumberT6BQC"); this.ClearNewWinNumberCache("QueryCTZQ_GameWinNumberT4CJQ"); if (string.IsNullOrEmpty(issuseNumber)) { return; } if (string.IsNullOrEmpty(winNumber)) { return; } if (CurrentGameType == "TR9" || CurrentGameType == "T14C") { var GameWinNumberManager = new CTZQ_T14C_GameWinNumberManager(); var result = GameWinNumberManager.QueryWinNumber(issuseNumber); if (result == null) { GameWinNumberManager.AddCTZQ_T14C_GameWinNumber(new CTZQ_T14C_GameWinNumber { GameCode = "CTZQ", IssuseNumber = issuseNumber, WinNumber = winNumber, GameType = CurrentGameType, CreateTime = DateTime.Now.Date, }); } else { UpdateGameWinNumber(issuseNumber, winNumber); } } if (CurrentGameType == "T6BQC") { var GameManager = new CTZQ_T6BQC_GameWinNumberManager(); var result = GameManager.QueryWinNumber(issuseNumber); if (result == null) { GameManager.AddCTZQ_T6BQC_GameWinNumber(new CTZQ_T6BQC_GameWinNumber { GameCode = "CTZQ", GameType = CurrentGameType, IssuseNumber = issuseNumber, WinNumber = winNumber, CreateTime = DateTime.Now.Date, }); } else { UpdateGameWinNumber(issuseNumber, winNumber); } } if (CurrentGameType == "T4CJQ") { var GameWinNumberManager = new CTZQ_T4CJQ_GameWinNumberManager(); var result = GameWinNumberManager.QueryWinNumber(issuseNumber); if (result == null) { GameWinNumberManager.AddCTZQ_T4CJQ_GameWinNumber(new CTZQ_T4CJQ_GameWinNumber { GameCode = "CTZQ", GameType = CurrentGameType, IssuseNumber = issuseNumber, WinNumber = winNumber, CreateTime = DateTime.Now.Date, }); } else { UpdateGameWinNumber(issuseNumber, winNumber); } } }