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){