From 1387e472aed851064235e88828dacd17cbce65d2 Mon Sep 17 00:00:00 2001 From: ty <1577900710@qq.com> Date: Thu, 11 Apr 2024 12:00:44 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A2=E6=AD=A3=EF=BC=9A=E9=A6=96=E9=A1=B5?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E5=A4=A9=E6=B0=94=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../hzims/operational/main/service/impl/HydropowerServiceImpl.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/main/service/impl/HydropowerServiceImpl.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/main/service/impl/HydropowerServiceImpl.java index ea0ab34..045445d 100644 --- a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/main/service/impl/HydropowerServiceImpl.java +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/main/service/impl/HydropowerServiceImpl.java @@ -1598,7 +1598,12 @@ public class HydropowerServiceImpl implements HydropowerService { * @return */ private String intervalTemp(Map week, String code,boolean flag) { - if(MapUtils.isEmpty(week) || !week.containsKey(code) || ObjectUtil.isEmpty(week.get(code))){ + if(MapUtils.isEmpty(week) || !week.containsKey(code) + || ObjectUtil.isEmpty(week.get(code)) + || CollectionUtil.isEmpty(week.get(code).getDaily()) + || ObjectUtil.isEmpty(week.get(code).getDaily().get(0)) + || ObjectUtil.isEmpty(week.get(code).getDaily().get(0).getTempMax()) + || ObjectUtil.isEmpty(week.get(code).getDaily().get(0).getTempMin())){ return "21"; } if(flag){