RealChartsController.java
1.07 KB
package com.bsth.controller.realcontrol;
import com.bsth.service.realcontrol.RealChartsService;
import com.bsth.service.realcontrol.dto.CarOutRate;
import com.bsth.service.realcontrol.dto.DeviceOnlineRate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
/**
* 线路调度统计图
* Created by panzhao on 2016/11/9.
*/
@RestController
@RequestMapping("realCharts")
public class RealChartsController {
@Autowired
RealChartsService realChartsService;
@RequestMapping("deviceOnlineRate")
public List<DeviceOnlineRate> deviceOnlineRate(@RequestParam String idx, @RequestParam String month){
return realChartsService.deviceOnlineRate(month, idx);
}
@RequestMapping("carOutRate")
public List<CarOutRate> carOutRate(@RequestParam String idx, @RequestParam String month){
return realChartsService.carOutRate(month, idx);
}
}