Himall商城BillingApplication根据ShopID获取该店铺的财务总览信息、获取平台帐户信息、获取首页交易额图表

  private const string PLUGIN_PAYMENT_ALIPAY = "Himall.Plugin.Payment.Alipay";
        private static IBillingService _iBillingService = ObjectContainer.Current.Resolve();
        private static ISiteSettingService _iSiteSettingService = ObjectContainer.Current.Resolve();
        private static IMemberCapitalService _iMemberCapitalService = ObjectContainer.Current.Resolve();

        ///


        /// 根据ShopID获取该店铺的财务总览信息
        ///

        /// 店铺ID
        ///
        public static ShopAccount GetShopAccount(long shopId)
        {
            if (shopId == 0)
            {
                throw new Core.HimallException("错误的店铺ID");
            }
            var model = _iBillingService.GetShopAccount(shopId);
            var shopAccount = Mapper.Map(model);
            return shopAccount;
        }

        ///


        /// 获取平台帐户信息
        ///

        ///
        public static PlatAccount GetPlatAccount()
        {
            var model = _iBillingService.GetPlatAccount();
            Mapper.CreateMap();
            var platAccount = Mapper.Map(model);
            return platAccount;
        }


        ///


        /// 获取首页交易额图表
        ///

        public static LineChartDataModel GetTradeChart(DateTime start, DateTime end, long? shopId)
        {
            start = start.Date;
            end = end.Date;
            var model = _iBillingService.GetTradeChart(start, end, shopId);
            return model;
        }
        ///
        /// 获取本月交易额图表
        ///

        public static LineChartDataModel GetTradeChartMonth(DateTime start, DateTime end, long? shopId)
        {
            start = start.Date;
            end = end.Date;
            var model = _iBillingService.GetTradeChartMonth(start, end, shopId);
            return model;
        }

你可能感兴趣的:(java,前端,html)