Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// 更新全国门店统计信息
 /// </summary>
 /// <param name="type"></param>
 public async Task UpdateShopStatistics(ShopStatisticsTypeEnum type)
 {
     await UpdateCache((int)type);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// 更新全国门店统计信息
 /// </summary>
 /// <param name="type"></param>
 public async Task UpdateShopStatistics(ShopStatisticsTypeEnum type)
 {
     await _shopStatisticsDal.UpdateShopStatistics(type);
 }
Ejemplo n.º 4
0
 /// <summary>
 /// 获取全国门店统计信息
 /// </summary>
 /// <param name="type"></param>
 /// <returns></returns>
 public async Task <List <ShopStatisticsView> > GetShopStatistics(ShopStatisticsTypeEnum type)
 {
     return(await _shopStatisticsDal.GetShopStatistics(type));
 }