示例#1
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="shopBll"></param>
 /// <param name="areaBll"></param>
 /// <param name="shopStatisticsBll"></param>
 /// <param name="platformBll"></param>
 public ShopController(IShopBLL shopBll, IAreaBLL areaBll, IShopStatisticsBLL shopStatisticsBll, IPlatformBLL platformBll)
 {
     this._shopBll           = shopBll;
     this._areaBll           = areaBll;
     this._shopStatisticsBll = shopStatisticsBll;
     this._platformBll       = platformBll;
 }
 /// <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;
 }
示例#3
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="shopBll"></param>
 /// <param name="areaBll"></param>
 /// <param name="platformBll"></param>
 public GetShopByAreaAction(IShopBLL shopBll, IAreaBLL areaBll, IPlatformBLL platformBll)
 {
     this._shopBll     = shopBll;
     this._areaBll     = areaBll;
     this._platformBll = platformBll;
 }