From dbe494fad8ec280b8814c7401266793931f29c43 Mon Sep 17 00:00:00 2001 From: weizhiqiang <598748873@qq.com> Date: Fri, 8 Nov 2024 14:58:22 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=A7=A3=E5=86=B3=E8=B4=AD=E7=89=A9?= =?UTF-8?q?=E8=BD=A6=E5=88=97=E8=A1=A8=E6=8A=A5=E9=94=99=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../skyeye/store/service/impl/ShopTradeCartServiceImpl.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/skyeye-shop/shop-store/src/main/java/com/skyeye/store/service/impl/ShopTradeCartServiceImpl.java b/skyeye-shop/shop-store/src/main/java/com/skyeye/store/service/impl/ShopTradeCartServiceImpl.java index f7faebcd..073b1a14 100644 --- a/skyeye-shop/shop-store/src/main/java/com/skyeye/store/service/impl/ShopTradeCartServiceImpl.java +++ b/skyeye-shop/shop-store/src/main/java/com/skyeye/store/service/impl/ShopTradeCartServiceImpl.java @@ -91,7 +91,9 @@ public class ShopTradeCartServiceImpl extends SkyeyeBusinessServiceImpl { String normsId = bean.getNormsId(); String salePrice = collect.get(normsId); - bean.getNormsMation().put("salePrice", salePrice); + if (CollectionUtil.isNotEmpty(bean.getNormsMation())) { + bean.getNormsMation().put("salePrice", salePrice); + } }); }