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