提交 1fcda567 作者: xiaowang

修复

上级 63651e8d
......@@ -162,7 +162,7 @@ public class LeaseGoodsServiceImpl implements LeaseGoodsService {
.orElse(BigDecimal.ZERO))
.max(Comparator.naturalOrder()).get();
d.setRentalRange("¥" + minPrice + "~" + "¥" + maxPrice);
d.setStock(list.stream().mapToInt(LeasePriceStockVO::getStock).sum());
d.setStock(list.stream().mapToInt(o -> o.getStock() == null ? 0 : o.getStock()).sum());
}).collect(Collectors.toList());
return PageResult.buildPage(pageNo, param.getPageSize(), count, leaseGoodsVOList);
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论