修复人工洪水预报接口

master
chenxiwang 2024-08-05 16:41:41 +08:00
parent 08ae9bef34
commit 09a84fe1b8
1 changed files with 1 additions and 7 deletions

View File

@ -93,13 +93,7 @@ public class ForecastResultsController {
@Operation(summary = "获取人工交互洪水预报结果")
@PostMapping("/getHumanForecastResult")
public R<List<ForecastResultVo>> 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<List<ForecastResultVo>> getHumanForecastResult(@RequestBody ForecastTask forecastTask) throws Exception {
List<ForecastResultVo> voList = service.getHumanForecastResult(forecastTask);
return R.ok(voList);
}