From 09a84fe1b8283640c7704da11d5b61b502aadce5 Mon Sep 17 00:00:00 2001 From: chenxiwang <1520264117@qq.com> Date: Mon, 5 Aug 2024 16:41:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=BA=E5=B7=A5=E6=B4=AA?= =?UTF-8?q?=E6=B0=B4=E9=A2=84=E6=8A=A5=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../project/xyt/controller/ForecastResultsController.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/main/java/com/gunshi/project/xyt/controller/ForecastResultsController.java b/src/main/java/com/gunshi/project/xyt/controller/ForecastResultsController.java index bb40715..434ac15 100644 --- a/src/main/java/com/gunshi/project/xyt/controller/ForecastResultsController.java +++ b/src/main/java/com/gunshi/project/xyt/controller/ForecastResultsController.java @@ -93,13 +93,7 @@ public class ForecastResultsController { @Operation(summary = "获取人工交互洪水预报结果") @PostMapping("/getHumanForecastResult") - public R> getHumanForecastResult(@Schema(name = "forecastTm", description = "预报时间") @RequestParam("forecastTm") String forecastTm, - @Schema(name = "startTm", description = "开始时间") @RequestParam("startTm") String startTm, - @Schema(name = "endTm", description = "结束时间") @RequestParam("endTm") String endTm) throws Exception { - ForecastTask forecastTask = new ForecastTask(); - forecastTask.setForecastTime(dateFormat.parse(forecastTm)); - forecastTask.setStartTime(dateFormat.parse(startTm)); - forecastTask.setEndTime(dateFormat.parse(endTm)); + public R> getHumanForecastResult(@RequestBody ForecastTask forecastTask) throws Exception { List voList = service.getHumanForecastResult(forecastTask); return R.ok(voList); }