|
|
|
@ -153,13 +153,15 @@ public class HomeServiceImpl implements HomeService {
|
|
|
|
|
count.setServeType(serve); |
|
|
|
|
if(HomePageConstant.CHARGE.equals(type) && "2".equals(serve)){ |
|
|
|
|
TargetVo target = (TargetVo) redisTemplate.opsForValue().get(charge); |
|
|
|
|
if(ObjectUtil.isNotEmpty(target)){ |
|
|
|
|
if(ObjectUtil.isEmpty(target)){ |
|
|
|
|
TargetVo charge = this.chargeTarget(); |
|
|
|
|
if(ObjectUtil.isNotEmpty(charge)){ |
|
|
|
|
count.setCount(Long.valueOf(charge.getCharge())); |
|
|
|
|
}else{ |
|
|
|
|
count.setCount(92L); |
|
|
|
|
count.setCount(113L); |
|
|
|
|
} |
|
|
|
|
}else{ |
|
|
|
|
count.setCount(Long.valueOf(target.getCharge())); |
|
|
|
|
} |
|
|
|
|
}else if(HomePageConstant.WATER_CONSERVANCY.equals(type) && "2".equals(serve)){ |
|
|
|
|
count.setCount(stations.stream().filter(station->serve.equals(station.getServeType()) && HomePageConstant.waterList.contains(station.getType())).count()); |
|
|
|
|