From 1f0281869291d71921dc25bb56e25aa536de1964 Mon Sep 17 00:00:00 2001 From: misworga831 Date: Wed, 10 May 2023 14:50:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BC=98=E5=8C=96=E8=B4=AD=E7=89=A9?= =?UTF-8?q?=E8=BD=A6=E5=95=86=E5=93=81=E4=BF=83=E9=94=80=E4=BB=B7=E6=A0=BC?= =?UTF-8?q?=E7=89=B9=E6=AE=8A=E6=83=85=E5=86=B5=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/order/cart/render/util/PromotionPriceUtil.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/framework/src/main/java/cn/lili/modules/order/cart/render/util/PromotionPriceUtil.java b/framework/src/main/java/cn/lili/modules/order/cart/render/util/PromotionPriceUtil.java index f6e2a2aa..dc0d6578 100644 --- a/framework/src/main/java/cn/lili/modules/order/cart/render/util/PromotionPriceUtil.java +++ b/framework/src/main/java/cn/lili/modules/order/cart/render/util/PromotionPriceUtil.java @@ -203,9 +203,12 @@ public class PromotionPriceUtil { return false; }).collect(Collectors.toList()); if (!unEnoughSku.isEmpty()) { + if (unEnoughSku.size() == skuVOList.size()) { + return; + } for (CartSkuVO cartSkuVO : skuVOList) { if (unEnoughSku.isEmpty()) { - return; + break; } if (skuPromotionDetail.containsKey(cartSkuVO.getGoodsSku().getId()) && unEnoughSku.stream().noneMatch(k -> k.getGoodsSku().getId().equals(cartSkuVO.getGoodsSku().getId()))) { // 商品金额占比