public IEnumerable <FlowView> GetDateViews(string collegeName, DateTime beginDate, DateTime endDate) { var cells = _collegeCellViewService.GetCollegeViews(collegeName); var viewList = cells.Select(cell => _service.Query(cell.ENodebId, cell.SectorId, beginDate, endDate)) .Where(views => views != null && views.Any()) .Aggregate((x, y) => x.Concat(y).ToList()); if (!viewList.Any()) { return(new List <FlowView>()); } return(viewList.GroupBy(x => x.StatTime).Select(x => { var stat = x.ArraySum(); stat.StatTime = x.Key; return stat; }).OrderBy(x => x.StatTime)); }
public IEnumerable <CellRruView> Get(string collegeName) { return(_viewService.GetCollegeViews(collegeName)); }