feat: 解决购物车列表报错的问题

This commit is contained in:
weizhiqiang 2024-11-08 14:58:22 +08:00
parent 091a1a661d
commit dbe494fad8

View file

@ -91,7 +91,9 @@ public class ShopTradeCartServiceImpl extends SkyeyeBusinessServiceImpl<ShopTrad
beans.forEach(bean -> {
String normsId = bean.getNormsId();
String salePrice = collect.get(normsId);
bean.getNormsMation().put("salePrice", salePrice);
if (CollectionUtil.isNotEmpty(bean.getNormsMation())) {
bean.getNormsMation().put("salePrice", salePrice);
}
});
}