From becec2764c3f8aa7f9637ad914b078975452c337 Mon Sep 17 00:00:00 2001 From: tiger_zhou Date: Tue, 12 Sep 2023 15:56:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../joylink/xiannccda/controller/AlertRecordController.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/club/joylink/xiannccda/controller/AlertRecordController.java b/src/main/java/club/joylink/xiannccda/controller/AlertRecordController.java index 52537b1..8fb3755 100644 --- a/src/main/java/club/joylink/xiannccda/controller/AlertRecordController.java +++ b/src/main/java/club/joylink/xiannccda/controller/AlertRecordController.java @@ -16,6 +16,8 @@ import io.swagger.v3.oas.annotations.tags.Tag; import java.util.List; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; @@ -73,11 +75,11 @@ public class AlertRecordController { } - @GetMapping("/report/{lineId}") + @PostMapping("/report/{lineId}") @SecurityRequirement(name = "jwt") @Operation(summary = "报警统计") @ApiResponse(description = "报警统计") - public List reportStatistics(@PathVariable("lineId") Integer lineId, AlertRecordReportDTO reportDTO) { + public List reportStatistics(@PathVariable("lineId") Integer lineId, @RequestBody AlertRecordReportDTO reportDTO) { return this.alertRecordService.report(lineId, reportDTO); } }