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); } }