TrafficEventStatisticsController.java 1.82 KB
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);
    }
}