购物车未勾选的商品价格被累计金额问题处理

This commit is contained in:
Chopper 2021-08-19 18:01:58 +08:00
parent 790dc53ad3
commit 6c871d470e

View File

@ -63,7 +63,9 @@ public class CartPriceRender implements CartRenderStep {
cartVOS.forEach(cartVO -> {
cartVO.getPriceDetailDTO().accumulationPriceDTO(
cartVO.getSkuList().stream().map(CartSkuVO::getPriceDetailDTO).collect(Collectors.toList()));
cartVO.getSkuList().stream().filter(CartSkuVO::getChecked)
.map(CartSkuVO::getPriceDetailDTO).collect(Collectors.toList())
);
});
}