From 37e73990fb83351baf7e69c1aaa7f14ccb1222d7 Mon Sep 17 00:00:00 2001 From: yang_shj <1069818635@QQ.com> Date: Sat, 16 Mar 2024 11:46:57 +0800 Subject: [PATCH] =?UTF-8?q?#=E9=99=90=E5=88=B6=E6=B0=B4=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/hnac/hzims/operational/data/vo/WeatherWaterVo.java | 3 +++ .../hnac/hzims/operational/data/service/impl/HzimsDataServiceImpl.java | 1 + 2 files changed, 4 insertions(+) diff --git a/hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/data/vo/WeatherWaterVo.java b/hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/data/vo/WeatherWaterVo.java index f8a4ee1..9b61df7 100644 --- a/hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/data/vo/WeatherWaterVo.java +++ b/hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/data/vo/WeatherWaterVo.java @@ -15,6 +15,9 @@ public class WeatherWaterVo { @ApiModelProperty("站点名称") private String stationName; + @ApiModelProperty("限制水位") + private Double limitWater; + @ApiModelProperty("天气") private List dailys; diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/data/service/impl/HzimsDataServiceImpl.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/data/service/impl/HzimsDataServiceImpl.java index 7990016..6550b4f 100644 --- a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/data/service/impl/HzimsDataServiceImpl.java +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/data/service/impl/HzimsDataServiceImpl.java @@ -278,6 +278,7 @@ public class HzimsDataServiceImpl implements HzimsDataService { if(ObjectUtil.isEmpty(station)){ return new WeatherWaterVo(); } + weatherWater.setLimitWater(station.getLimitWaterLevel()); weatherWater.setStationName(station.getName()); // 七天天气 Map weekWeather = this.getWeekWeather(Collections.singletonList(station.getCode()));