|
|
@ -5,9 +5,11 @@ import com.zc.business.service.IDcTrafficIncidentsService; |
|
|
|
import io.swagger.annotations.Api; |
|
|
|
import io.swagger.annotations.ApiOperation; |
|
|
|
import io.swagger.annotations.ApiParam; |
|
|
|
import org.apache.ibatis.annotations.Param; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
import java.util.Date; |
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
/** |
|
|
@ -127,14 +129,18 @@ public class DcTrafficIncidentsController { |
|
|
|
* |
|
|
|
* @author liuwenge |
|
|
|
* @date 2024/1/15 15:38 |
|
|
|
* @param |
|
|
|
* @param direction 方向 |
|
|
|
* @param direction 类型(1:日, 2:月, 3:季度, 4-年) |
|
|
|
* @param direction 时间 |
|
|
|
* @return com.ruoyi.common.core.domain.AjaxResult |
|
|
|
*/ |
|
|
|
@ApiOperation("事故车型分析") |
|
|
|
// @GetMapping("/getAccidentVehicleAnalysis")
|
|
|
|
@PostMapping("/selectAccidentVehicleAnalysis") |
|
|
|
public AjaxResult getAccidentVehicleAnalysis(@RequestBody Map<String,Object> params){ |
|
|
|
return trafficIncidentsService.getAccidentVehicleAnalysis(params); |
|
|
|
public AjaxResult getAccidentVehicleAnalysis(@ApiParam(value="方向", name="direction", required=true) @RequestParam ("direction") String direction, |
|
|
|
@ApiParam(value="类型(1:日, 2:月, 3:季度, 4-年)", name="type", required=true) @RequestParam ("type") String type, |
|
|
|
@ApiParam(value="时间", name="startTime", required=true) @RequestParam ("startTime") String startTime){ |
|
|
|
return trafficIncidentsService.getAccidentVehicleAnalysis(direction,type,startTime); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
@ -142,13 +148,17 @@ public class DcTrafficIncidentsController { |
|
|
|
* |
|
|
|
* @author liuwenge |
|
|
|
* @date 2024/1/15 17:31 |
|
|
|
* @param params |
|
|
|
* @param controlType 类型(1:封闭,2:限行) |
|
|
|
* @param startTime 开始时间 |
|
|
|
* @param endTime 结束时间 |
|
|
|
* @return com.ruoyi.common.core.domain.AjaxResult |
|
|
|
*/ |
|
|
|
@ApiOperation("收费站统计分析table") |
|
|
|
@PostMapping("/selectTollStationAnalysis") |
|
|
|
public AjaxResult selectTollStationAnalysis(@RequestBody Map<String,Object> params){ |
|
|
|
return trafficIncidentsService.selectTollStationAnalysis(params); |
|
|
|
public AjaxResult selectTollStationAnalysis(@ApiParam(value="类型(1:封闭,2:限行)", name="controlType", required=true) @RequestParam ("controlType") String controlType, |
|
|
|
@ApiParam(value="开始时间", name="startTime", required=true) @RequestParam ("startTime") String startTime, |
|
|
|
@ApiParam(value="结束时间", name="endTime", required=true) @RequestParam ("endTime") String endTime){ |
|
|
|
return trafficIncidentsService.selectTollStationAnalysis(controlType,startTime,endTime); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
@ -170,13 +180,17 @@ public class DcTrafficIncidentsController { |
|
|
|
* |
|
|
|
* @author liuwenge |
|
|
|
* @date 2024/1/16 15:52 |
|
|
|
* @param params |
|
|
|
* @param direction 方向 |
|
|
|
* @param direction 类型(1:日, 2:月, 3:季度, 4-年) |
|
|
|
* @param direction 时间 |
|
|
|
* @return com.ruoyi.common.core.domain.AjaxResult |
|
|
|
*/ |
|
|
|
@ApiOperation("事故多发路段分析") |
|
|
|
@PostMapping("/selectRoadSectionAnalysis") |
|
|
|
public AjaxResult selectRoadSectionAnalysis(@RequestBody Map<String,Object> params){ |
|
|
|
return trafficIncidentsService.selectRoadSectionAnalysis(params); |
|
|
|
public AjaxResult selectRoadSectionAnalysis(@ApiParam(value="方向", name="direction", required=true) @RequestParam ("direction") String direction, |
|
|
|
@ApiParam(value="类型(1:日, 2:月, 3:季度, 4-年)", name="type", required=true) @RequestParam ("type") String type, |
|
|
|
@ApiParam(value="时间", name="startTime", required=true) @RequestParam ("startTime") String startTime){ |
|
|
|
return trafficIncidentsService.selectRoadSectionAnalysis(direction,type,startTime); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
@ -184,12 +198,16 @@ public class DcTrafficIncidentsController { |
|
|
|
* |
|
|
|
* @author liuwenge |
|
|
|
* @date 2024/1/16 15:52 |
|
|
|
* @param params |
|
|
|
* @param direction 方向 |
|
|
|
* @param direction 类型(1:日, 2:月, 3:季度, 4-年) |
|
|
|
* @param direction 时间 |
|
|
|
* @return com.ruoyi.common.core.domain.AjaxResult |
|
|
|
*/ |
|
|
|
@ApiOperation("事故类型分析") |
|
|
|
@PostMapping("/selectEventTypeAnalysis") |
|
|
|
public AjaxResult selectEventTypeAnalysis(@RequestBody Map<String,Object> params){ |
|
|
|
return trafficIncidentsService.selectEventTypeAnalysis(params); |
|
|
|
public AjaxResult selectEventTypeAnalysis(@ApiParam(value="方向", name="direction", required=true) @RequestParam ("direction") String direction, |
|
|
|
@ApiParam(value="类型(1:日, 2:月, 3:季度, 4-年)", name="type", required=true) @RequestParam ("type") String type, |
|
|
|
@ApiParam(value="时间", name="startTime", required=true) @RequestParam ("startTime") String startTime){ |
|
|
|
return trafficIncidentsService.selectEventTypeAnalysis(direction,type,startTime); |
|
|
|
} |
|
|
|
} |
|
|
|