TrafficEventStatisticsController.java
1.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
package com.viontech.controller;
import com.viontech.service.adapter.traffic.ITrafficStatisticsService;
import com.viontech.vo.TrafficStatisticsVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
/**
* @program: event_data_handle
* @description: 交通事件统计控制层
* @author: authorName
* @create: 2020-01-03 11:13
**/
@RestController
public class TrafficEventStatisticsController extends BaseController{
@Autowired
ITrafficStatisticsService iTrafficStatisticsService;
@GetMapping("/statistics/traffic/type")
@ResponseBody
public Object statisticsByType(TrafficStatisticsVo trafficStatisticsVo){
return iTrafficStatisticsService.statisticsByType(trafficStatisticsVo);
}
@GetMapping("/statistics/traffic/hour")
@ResponseBody
public Object hourChart(TrafficStatisticsVo trafficStatisticsVo){
return iTrafficStatisticsService.hourChart(trafficStatisticsVo);
}
@GetMapping("/statistics/traffic/handle")
@ResponseBody
Object statisticsByEventHandle(TrafficStatisticsVo trafficStatisticsVo){
return iTrafficStatisticsService.statisticsByEventHandle(trafficStatisticsVo);
}
@GetMapping("/statistics/traffic/snap")
@ResponseBody
Object snapStatistics(TrafficStatisticsVo trafficStatisticsVo){
return iTrafficStatisticsService.snapStatistics(trafficStatisticsVo);
}
@GetMapping("/statistics/traffic/key/vehicle")
@ResponseBody
Object keyVehicleStatistics(TrafficStatisticsVo trafficStatisticsVo){
return iTrafficStatisticsService.keyVehicleStatistics(trafficStatisticsVo);
}
}