Example #1
0
        public IEnumerable <TownMrsSinrUlDto> GetDateView(DateTime statDate)
        {
            var beginDate = statDate.Date;
            var endDate   = beginDate.AddDays(1);
            var colleges  = _marketService.QueryHotSpotViews("专业市场");

            return(colleges.Select(college =>
            {
                var cells = _collegeCellViewService.GetCollegeCells(college.HotspotName);
                var viewListList = cells.Select(cell =>
                                                _service.QuerySinrUlStats(cell.ENodebId, cell.SectorId, beginDate, endDate))
                                   .Where(views => views != null && views.Any()).ToList();
                if (!viewListList.Any())
                {
                    return null;
                }
                var viewList = viewListList.Aggregate((x, y) => x.Concat(y).ToList()).ToList();
                if (!viewList.Any())
                {
                    return null;
                }
                var stat = viewList.ArraySum().MapTo <TownMrsSinrUlDto>();
                stat.FrequencyBandType = FrequencyBandType.Market;
                stat.TownId = college.Id;
                stat.StatDate = statDate.Date;
                return stat;
            }).Where(x => x != null));
        }
Example #2
0
 public IEnumerable <MrsSinrUlStat> Get(int eNodebId, byte sectorId, DateTime begin, DateTime end)
 {
     return(_service.QuerySinrUlStats(eNodebId, sectorId, begin, end));
 }