Example #1
0
        public IEnumerable <AggregatePreciseView> Get(DateTime startDate, DateTime lastDate)
        {
            var colleges = _marketService.QueryHotSpotViews("交通枢纽");

            return(colleges.Select(college =>
            {
                var stats = _townPreciseService.QueryTownViews(startDate, lastDate, college.Id, FrequencyBandType.Transportation);
                var result = stats.Any()
                    ? stats.ArraySum().MapTo <AggregatePreciseView>()
                    : new AggregatePreciseView();
                result.Name = college.HotspotName;
                return result;
            }));
        }
Example #2
0
        public IEnumerable <AggregatePreciseView> Get(DateTime startDate, DateTime lastDate)
        {
            var colleges = _collegeService.QueryInfos();

            return(colleges.Select(college =>
            {
                var stats = _townMrsRsrpService.QueryTownViews(startDate, lastDate, college.Id, FrequencyBandType.College);
                var result = stats.Any()
                    ? stats.ArraySum().MapTo <AggregatePreciseView>()
                    : new AggregatePreciseView();
                result.Name = college.Name;
                return result;
            }));
        }