Ejemplo n.º 1
0
        public IEnumerable <AggregateMrsTadvView> Get(DateTime startDate, DateTime lastDate)
        {
            var colleges = _collegeService.QueryHotSpotViews("专业市场");

            return(colleges.Select(college =>
            {
                var stats = _townMrsTadvService.QueryTownViews(startDate, lastDate, college.Id, FrequencyBandType.Market);
                var result = stats.Any()
                    ? stats.ArraySum().MapTo <AggregateMrsTadvView>()
                    : new AggregateMrsTadvView();
                result.Name = college.HotspotName;
                return result;
            }));
        }
Ejemplo n.º 2
0
        public IEnumerable <AggregateHourCqiView> Get(DateTime startDate, DateTime lastDate)
        {
            var colleges = _transportationService.QueryHotSpotViews("交通枢纽");

            return(colleges.Select(college =>
            {
                var stats = _townCqiService.QueryTownCqiViews(startDate, lastDate, college.Id, FrequencyBandType.Transportation);
                var result = stats.Any()
                    ? stats.ArraySum().MapTo <AggregateHourCqiView>()
                    : new AggregateHourCqiView();
                result.Name = college.HotspotName;
                return result;
            }));
        }
 public IEnumerable <HotSpotView> Get()
 {
     return(_service.QueryHotSpotViews());
 }