diff --git a/zc-business/src/main/java/com/zc/business/controller/DcSdhsEventController.java b/zc-business/src/main/java/com/zc/business/controller/DcSdhsEventController.java index d69fb33e..75cf309f 100644 --- a/zc-business/src/main/java/com/zc/business/controller/DcSdhsEventController.java +++ b/zc-business/src/main/java/com/zc/business/controller/DcSdhsEventController.java @@ -294,9 +294,9 @@ public class DcSdhsEventController { * @param dcSdhsEventQuery * @return */ - @GetMapping("/accidentTimeAnalysis") + @PostMapping("/accidentTimeAnalysis") @ApiOperation("事故时间分析") - public AjaxResult accidentTimeAnalysis(DcSdhsEventQuery dcSdhsEventQuery){ + public AjaxResult accidentTimeAnalysis(@RequestBody DcSdhsEventQuery dcSdhsEventQuery){ return AjaxResult.success( dcSdhsEventService.accidentTimeAnalysis(dcSdhsEventQuery)); } /** @@ -304,18 +304,18 @@ public class DcSdhsEventController { * @param dcSdhsEventQuery * @return */ - @GetMapping("/accidentModelAnalysis") + @PostMapping("/accidentModelAnalysis") @ApiOperation("事故车型分析") - public AjaxResult accidentModelAnalysis(DcSdhsEventQuery dcSdhsEventQuery){ + public AjaxResult accidentModelAnalysis(@RequestBody DcSdhsEventQuery dcSdhsEventQuery){ return AjaxResult.success( dcSdhsEventService.accidentModelAnalysis(dcSdhsEventQuery)); } /** * 收费站出入口分析 * @param dcSdhsEventQuery * @return */ - @GetMapping("/TollBoothStatisticsList") + @PostMapping("/TollBoothStatisticsList") @ApiOperation("收费站出入口分析") - public AjaxResult TollBoothStatisticsList(DcSdhsEventQuery dcSdhsEventQuery){ + public AjaxResult TollBoothStatisticsList(@RequestBody DcSdhsEventQuery dcSdhsEventQuery){ return AjaxResult.success( dcSdhsEventService.TollBoothStatisticsList(dcSdhsEventQuery)); } @@ -324,9 +324,9 @@ public class DcSdhsEventController { * @param dcSdhsEventQuery * @return */ - @GetMapping("/gantryAnalysis") + @PostMapping("/gantryAnalysis") @ApiOperation("门架分析") - public AjaxResult gantryAnalysis(DcSdhsEventQuery dcSdhsEventQuery){ + public AjaxResult gantryAnalysis(@RequestBody DcSdhsEventQuery dcSdhsEventQuery){ return AjaxResult.success( dcSdhsEventService.trafficFlowStatistics(dcSdhsEventQuery)); } diff --git a/zc-business/src/main/java/com/zc/business/domain/DcSdhsEventQuery.java b/zc-business/src/main/java/com/zc/business/domain/DcSdhsEventQuery.java index d67b01e9..f7377e2f 100644 --- a/zc-business/src/main/java/com/zc/business/domain/DcSdhsEventQuery.java +++ b/zc-business/src/main/java/com/zc/business/domain/DcSdhsEventQuery.java @@ -28,13 +28,13 @@ public class DcSdhsEventQuery /** 开始时间 */ @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") - @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") //接收时间类型 + //@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") //接收时间类型 private Date startTime; /** 结束时间 */ @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") - @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") //接收时间类型 + // @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") //接收时间类型 private Date endTime;