示例#1
0
        /// <summary>
        /// 获取门店统计信息
        /// </summary>
        /// <param name="type"></param>
        /// <returns></returns>
        public async Task <List <ShopStatisticsView> > GetShopStatistics(ShopStatisticsTypeEnum type)
        {
            var buckt = await GetCache((int)type);

            if (buckt != null)
            {
                return(buckt.ShopStatistics);
            }
            return(null);
        }
示例#2
0
 /// <summary>
 /// 更新全国门店统计信息
 /// </summary>
 /// <param name="type"></param>
 public async Task UpdateShopStatistics(ShopStatisticsTypeEnum type)
 {
     await UpdateCache((int)type);
 }
示例#3
0
 /// <summary>
 /// 更新全国门店统计信息
 /// </summary>
 /// <param name="type"></param>
 public async Task UpdateShopStatistics(ShopStatisticsTypeEnum type)
 {
     await _shopStatisticsDal.UpdateShopStatistics(type);
 }
示例#4
0
 /// <summary>
 /// 获取全国门店统计信息
 /// </summary>
 /// <param name="type"></param>
 /// <returns></returns>
 public async Task <List <ShopStatisticsView> > GetShopStatistics(ShopStatisticsTypeEnum type)
 {
     return(await _shopStatisticsDal.GetShopStatistics(type));
 }