|
|
@ -131,7 +131,7 @@ public class DcTrafficStatisticsController extends BaseController { |
|
|
|
* @param request 包含查询条件的请求对象,用于筛选历史收费站统计数据 |
|
|
|
* @return 返回一个AjaxResult对象,其中包含了查询到的收费站统计数据列表 |
|
|
|
*/ |
|
|
|
@ApiOperation("获取收费站统计数据") |
|
|
|
@ApiOperation("获取收费站统计数据") |
|
|
|
@GetMapping("/history/toll-station") |
|
|
|
public AjaxResult historyTollStation(DcTollStationStatisticsData request){ |
|
|
|
// 调用服务层方法,根据请求条件查询历史车收费站数据
|
|
|
@ -400,14 +400,15 @@ public AjaxResult trafficFlowAtTollStationEntrance(String startDate, String endD |
|
|
|
return AjaxResult.success(mapList); |
|
|
|
} |
|
|
|
/** |
|
|
|
* 全路段双向实时车流量 |
|
|
|
* 获取据库中 收费站统计数据 |
|
|
|
* @param startDate 时间 |
|
|
|
* @param direction 方向 |
|
|
|
* @param accessType 出入口 1入 2出 |
|
|
|
* @param periodType 方向 |
|
|
|
*/ |
|
|
|
@ApiOperation("集团双向实时车流量") |
|
|
|
@GetMapping("/history/realTimeTrafficFlowHour2") |
|
|
|
public AjaxResult realTimeTrafficFlowHour2(String startDate,Long direction) throws HttpException, IOException{ |
|
|
|
JSONArray mapList = dcTrafficStatisticsService.realTimeTrafficFlowHour2(startDate,direction); |
|
|
|
@ApiOperation("获取据库中收费站数数据") |
|
|
|
@GetMapping("/history/TollBoothStatistics") |
|
|
|
public AjaxResult TollBoothStatistics(String startDate,String accessType,String periodType) throws HttpException, IOException{ |
|
|
|
List<DcTollStationStatisticsData> mapList = dcTollStationStatisticsDataService.TollBoothStatistics(startDate,accessType,periodType); |
|
|
|
// 将查询结果封装为成功响应并返回
|
|
|
|
return AjaxResult.success(mapList); |
|
|
|
} |
|
|
|