Browse Source

交通流双向车流量优化

develop
王兴琳 5 months ago
parent
commit
4d55f3e23c
  1. 4
      zc-business/src/main/java/com/zc/business/controller/DcTrafficStatisticsController.java
  2. 2
      zc-business/src/main/java/com/zc/business/service/IDcTrafficStatisticsService.java
  3. 2
      zc-business/src/main/java/com/zc/business/service/impl/DcTrafficStatisticsServiceImpl.java

4
zc-business/src/main/java/com/zc/business/controller/DcTrafficStatisticsController.java

@ -641,8 +641,8 @@ public AjaxResult trafficFlowAtTollStationEntrance(String startDate, String endD
*/
@ApiOperation("全路段双向实时车流量")
@GetMapping("/history/realTimeTrafficFlowHour")
public AjaxResult realTimeTrafficFlowHour(String startDate,Long direction) throws HttpException, IOException{
Map<String,List<Map<String, Object>>> mapList = dcTrafficStatisticsService.realTimeTrafficFlowHour(startDate,direction);
public AjaxResult realTimeTrafficFlowHour() throws HttpException, IOException{
Map<String,List<Map<String, Object>>> mapList = dcTrafficStatisticsService.realTimeTrafficFlowHour();
// 将查询结果封装为成功响应并返回
return AjaxResult.success(mapList);
}

2
zc-business/src/main/java/com/zc/business/service/IDcTrafficStatisticsService.java

@ -52,7 +52,7 @@ public interface IDcTrafficStatisticsService {
JSONArray trafficFlowAtTollStationEntranceHour(String startDate, String endDate, String stationType)throws HttpException, IOException;
Map<String,List<Map<String, Object>>> realTimeTrafficFlowHour(String startDate,Long direction) throws HttpException, IOException;
Map<String,List<Map<String, Object>>> realTimeTrafficFlowHour() throws HttpException, IOException;
List<Map<String,Object>> queryTheGantryDataByPileNumber(String startDate,String stakeMark) throws HttpException, IOException;
}

2
zc-business/src/main/java/com/zc/business/service/impl/DcTrafficStatisticsServiceImpl.java

@ -699,7 +699,7 @@ public class DcTrafficStatisticsServiceImpl implements IDcTrafficStatisticsServi
}
@Override
public Map<String,List<Map<String, Object>>> realTimeTrafficFlowHour(String startDate, Long direction) throws HttpException, IOException {
public Map<String,List<Map<String, Object>>> realTimeTrafficFlowHour() throws HttpException, IOException {
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd");
LocalDate currentDate = LocalDate.now();

Loading…
Cancel
Save