/// <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> /// <param name="shopRetailRankLimitBll"></param> /// <param name="sysUserBll"></param> /// <param name="sysUserRoleBll"></param> /// <param name="sysUserLogBll"></param> /// <param name="areaBll"></param> /// <param name="goodsBll"></param> /// <param name="openDataBll"></param> /// <param name="shopBll"></param> /// <param name="baseSupplierBll"></param> /// <param name="retailCustomerBll"></param> public OpenController(IShopRetailRankBLL shopRetailRankBll, IShopRetailRankLimitBLL shopRetailRankLimitBll, ISysUserBLL sysUserBll, ISysUserRoleBLL sysUserRoleBll, ISysUserLogBLL sysUserLogBll, IOpenDataBLL openDataBll, IGoodsBLL goodsBll, IAreaBLL areaBll, IShopBLL shopBll, IBaseSupplierBLL baseSupplierBll, IRetailCustomerBLL retailCustomerBll) { this._shopRetailRankBll = shopRetailRankBll; this._shopRetailRankLimitBll = shopRetailRankLimitBll; this._sysUserBll = sysUserBll; this._sysUserRoleBll = sysUserRoleBll; this._sysUserLogBll = sysUserLogBll; this._openDataBll = openDataBll; this._goodsBll = goodsBll; this._areaBll = areaBll; this._shopBll = shopBll; this._baseSupplierBll = baseSupplierBll; this._retailCustomerBll = retailCustomerBll; }
/// <summary> /// 构造函数 /// </summary> /// <param name="shopRetailRankBll"></param> /// <param name="shopRetailRankLimitBll"></param> public GetShopRetailRankAboutGrowthAction(IShopRetailRankBLL shopRetailRankBll, IShopRetailRankLimitBLL shopRetailRankLimitBll) { this._shopRetailRankBll = shopRetailRankBll; this._shopRetailRankLimitBll = shopRetailRankLimitBll; _shopRetailRankConfig = CustomServiceLocator.GetInstance <IAppConfigurtaionServices>().AppSettings.ShopRetailRankConfig; }