|
|
|
@ -1598,7 +1598,12 @@ public class HydropowerServiceImpl implements HydropowerService {
|
|
|
|
|
* @return |
|
|
|
|
*/ |
|
|
|
|
private String intervalTemp(Map<String, HeWeatherWeatherDailyResponse> 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){ |
|
|
|
|