Beispiel #1
0
        private List <FlowHuawei> QueryHuaweiFlows(DateTime begin, DateTime end, FrequencyBandType frequency)
        {
            var huaweiFlows = _huaweiRepository.GetAllList(x => x.StatTime >= begin && x.StatTime < end);

            if (frequency == FrequencyBandType.All)
            {
                return(huaweiFlows);
            }
            var cells = _cellService.GetHuaweiCellsByBandType(frequency);

            huaweiFlows = (from f in huaweiFlows
                           join c in cells on new { f.ENodebId, f.LocalCellId } equals
                           new { c.ENodebId, LocalCellId = c.LocalSectorId }
                           select f).ToList();
            return(huaweiFlows);
        }
Beispiel #2
0
        private List <TownFlowStat> GetTownFlowStats(DateTime statDate,
                                                     FrequencyBandType frequency = FrequencyBandType.All)
        {
            var end          = statDate.AddDays(1);
            var townStatList = new List <TownFlowStat>();
            var huaweiFlows  = _huaweiRepository.GetAllList(x => x.StatTime >= statDate && x.StatTime < end);
            var zteFlows     = _service.QueryZteFlows(frequency, statDate, end);

            if (frequency != FrequencyBandType.All)
            {
                var cells = _cellService.GetHuaweiCellsByBandType(frequency);
                huaweiFlows = (from f in huaweiFlows
                               join c in cells on new { f.ENodebId, f.LocalCellId } equals
                               new { c.ENodebId, LocalCellId = c.LocalSectorId }
                               select f).ToList();
            }
            townStatList.AddRange(huaweiFlows.GetTownStats <FlowHuawei, TownFlowStat>(_eNodebRepository));
            townStatList.AddRange(zteFlows.GetTownStats <FlowZte, TownFlowStat>(_eNodebRepository));
            return(townStatList);
        }