From 762f293eb54171019da8425d90e4a457d6a6d356 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=85=B4=E7=90=B3?= <1911390090@qq.com> Date: Mon, 26 Aug 2024 18:51:16 +0800 Subject: [PATCH] =?UTF-8?q?=E9=97=A8=E6=9E=B6=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/DcSdhsEventController.java | 16 ++++++++-------- .../com/zc/business/domain/DcSdhsEventQuery.java | 4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) 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;