;
List<Map<String, Object>> maps = baseMapper.selectMaps(queryWrapper);
BigDecimal totalRecharge=new BigDecimal(0);
maps.stream().findFirst().ifPresent(
map->{
totalRecharge = (BigDecimal) map.get("totalRecharge");
}
);
List<Map<String, Object>> maps = baseMapper.selectMaps(queryWrapper);
final BigDecimal[] totalRecharge = {new BigDecimal(0)};
maps.stream().findFirst().ifPresent(
map->{
totalRecharge[0] = (BigDecimal) map.get("totalRecharge");
}
);