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