public IEnumerable <TownMrsTadvDto> GetDateView(DateTime statDate) { var beginDate = statDate.Date; var endDate = beginDate.AddDays(1); var colleges = _collegeService.QueryHotSpotViews("专业市场"); return(colleges.Select(college => { var cells = _collegeCellViewService.GetCollegeCells(college.HotspotName); var viewListList = cells.Select(cell => _service.QueryTadvStats(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 <TownMrsTadvDto>(); stat.FrequencyBandType = FrequencyBandType.Market; stat.TownId = college.Id; stat.StatDate = statDate.Date; return stat; }).Where(x => x != null)); }
public IEnumerable <MrsTadvStat> Get(int eNodebId, byte sectorId, DateTime begin, DateTime end) { return(_service.QueryTadvStats(eNodebId, sectorId, begin, end)); }