修复购物车列表显示的问题

This commit is contained in:
hupeng
2019-12-24 12:12:44 +08:00
parent a2942f608d
commit 517249e0e1
2 changed files with 2 additions and 1 deletions

View File

@ -201,6 +201,7 @@ public class YxStoreCartServiceImpl extends BaseServiceImpl<YxStoreCartMapper, Y
YxStoreProductAttrValue productAttrValue = productAttrService
.uniqueByAttrInfo(storeCart.getProductAttrUnique());
if(ObjectUtil.isNull(productAttrValue) || productAttrValue.getStock() == 0){
storeCartQueryVo.setProductInfo(storeProduct);
invalid.add(storeCartQueryVo);
}else{
storeProduct.setAttrInfo(productAttrValue);