public GameWinNumber_Info QueryWinNumberT6BQC(string issuseNumber)
        {
            var manager = new CTZQ_T6BQC_GameWinNumberManager();
            var entity  = manager.QueryWinNumber(issuseNumber);
            var info    = new GameWinNumber_Info();

            ObjectConvert.ConverEntityToInfo <CTZQ_T6BQC_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);
            }
        }
        public GameWinNumber_InfoCollection QueryCTZQ_GameWinNumberT6BQC(DateTime startTime, DateTime endTime, int pageIndex, int pageSize)
        {
            GameWinNumber_InfoCollection collection = new GameWinNumber_InfoCollection();
            var totalCount = 0;
            var infoList   = new List <GameWinNumber_Info>();
            var entityList = new CTZQ_T6BQC_GameWinNumberManager().QueryCTZQ_T6BQC_GameWinNumber(startTime, endTime, pageIndex, pageSize, out totalCount);

            ObjectConvert.ConvertEntityListToInfoList <List <CTZQ_T6BQC_GameWinNumber>, CTZQ_T6BQC_GameWinNumber, List <GameWinNumber_Info>, GameWinNumber_Info>(entityList, ref infoList,
                                                                                                                                                                 () => { return(new GameWinNumber_Info()); },
                                                                                                                                                                 (entity, info) =>
            {
                //处理info里面有,页entity里面没有的属性
                //info.WinNumber = entity.WinNumber;
            });
            collection.TotalCount = totalCount;
            collection.List.AddRange(infoList);
            return(collection);

            //string key = string.Format("QueryCTZQ_GameWinNumberT6BQC_{0}_{1}_{2}_{3}", pageIndex, pageSize, startTime.ToString("yyyyMMdd"), endTime.ToString("yyyyMMdd"));
            //return QueryNewWinNumber(key, () =>
            //{
            //    GameWinNumber_InfoCollection collection = new GameWinNumber_InfoCollection();
            //    var totalCount = 0;
            //    var infoList = new List<GameWinNumber_Info>();
            //    var entityList = new CTZQ_T6BQC_GameWinNumberManager().QueryCTZQ_T6BQC_GameWinNumber(startTime, endTime, pageIndex, pageSize, out totalCount);

            //   ObjectConvert.ConvertEntityListToInfoList<List<CTZQ_T6BQC_GameWinNumber>, CTZQ_T6BQC_GameWinNumber, List<GameWinNumber_Info>, GameWinNumber_Info>(entityList, ref infoList,
            //        () => { return new GameWinNumber_Info(); },
            //        (entity, info) =>
            //        {
            //            //处理info里面有,页entity里面没有的属性
            //            //info.WinNumber = entity.WinNumber;
            //        });
            //    collection.TotalCount = totalCount;
            //    collection.List.AddRange(infoList);
            //    return collection;
            //});
        }
        /// <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);
                }
            }
        }