public IEnumerable <CellMrsRsrpDto> GetMarketDateView(string marketName, DateTime statDate) { var beginDate = statDate.Date; var endDate = beginDate.AddDays(1); var college = _marketService.QueryMarketView(marketName); if (college == null) { return(new List <CellMrsRsrpDto>()); } var cells = _collegeCellViewService.QueryCollegeSectors(college.HotspotName); var viewListList = cells.Select(cell => { var items = _service.QueryRsrpStats(cell.ENodebId, cell.SectorId, beginDate, endDate).ToList(); items.ForEach(item => { cell.MapTo(item); }); return(items); }) .Where(views => views.Any()).ToList(); if (!viewListList.Any()) { return(new List <CellMrsRsrpDto>()); } var viewList = viewListList.Aggregate((x, y) => x.Concat(y).ToList()); return(!viewList.Any() ? new List <CellMrsRsrpDto>() : viewList); }
public IEnumerable <MrsRsrpStat> Get(int eNodebId, byte sectorId, DateTime begin, DateTime end) { return(_service.QueryRsrpStats(eNodebId, sectorId, begin, end)); }