From f8025066c4e5bd987daf504e0d5fc4e29e0c7548 Mon Sep 17 00:00:00 2001 From: zhaoxianglong Date: Thu, 18 Jul 2024 08:46:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=A4=A9=E6=B0=94=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=20=E5=A4=A9=E6=B0=94=E6=83=85=E5=86=B5=E5=88=A4?= =?UTF-8?q?=E6=96=AD=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/zc/business/controller/WeatherForecastController.java | 2 +- .../src/main/java/com/zc/business/enums/UniversalEnum.java | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/zc-business/src/main/java/com/zc/business/controller/WeatherForecastController.java b/zc-business/src/main/java/com/zc/business/controller/WeatherForecastController.java index 9cfc7927..407c7249 100644 --- a/zc-business/src/main/java/com/zc/business/controller/WeatherForecastController.java +++ b/zc-business/src/main/java/com/zc/business/controller/WeatherForecastController.java @@ -293,7 +293,7 @@ public class WeatherForecastController extends BaseController { Double rhu = jsonObject.getDouble("rhu"); - if (rhu > UniversalEnum.SIXTY.getNumber()) { + if (rhu > UniversalEnum.NINETY.getNumber()) { jsonObject.put("weatherCondition", UniversalEnum.OVERCAST_SKY.getValue()); jsonObject.put("weatherConditionCode", UniversalEnum.OVERCAST_SKY.getNumber()); } else { diff --git a/zc-business/src/main/java/com/zc/business/enums/UniversalEnum.java b/zc-business/src/main/java/com/zc/business/enums/UniversalEnum.java index 31fd11aa..00a79b0e 100644 --- a/zc-business/src/main/java/com/zc/business/enums/UniversalEnum.java +++ b/zc-business/src/main/java/com/zc/business/enums/UniversalEnum.java @@ -1405,6 +1405,9 @@ public enum UniversalEnum { // 70 SEVENTY(70, "70"), + // 90 + NINETY(90, "90"), + // 91 NINETY_ONE(91, "91"),