/// <summary> /// 初始化类公共属性 /// </summary> private void Initialize() { _shopBll = CustomServiceLocator.GetInstance <IShopBLL>(); _shopRetailRankBll = CustomServiceLocator.GetInstance <IShopRetailRankBLL>(); _shopRetailRankWinnerBll = CustomServiceLocator.GetInstance <IShopRetailRankLimitBLL>(); _platformBll = CustomServiceLocator.GetInstance <IPlatformBLL>(); _appSettings = CustomServiceLocator.GetInstance <IAppConfigurtaionServices>().AppSettings; _config = _appSettings.ShopRetailRankConfig; _now = DateTime.Now; _startGrowth = _now.GetStartOfTheWeek(); _endGrowth = _now; _startKing = _config.KingStartTime; _endKing = _now; }
/// <summary> /// 构造函数 /// </summary> /// <param name="shopRetailRankBll"></param> public GetShopRetailRankAboutKingAction(IShopRetailRankBLL shopRetailRankBll) { this._shopRetailRankBll = shopRetailRankBll; _shopRetailRankConfig = CustomServiceLocator.GetInstance <IAppConfigurtaionServices>().AppSettings.ShopRetailRankConfig; }