修复购物车商品下架错误

This commit is contained in:
LionCity
2020-09-15 12:08:21 +08:00
parent 5414fa4839
commit 40b6ea4313

View File

@ -196,7 +196,7 @@ public class YxStoreCartServiceImpl extends BaseServiceImpl<StoreCartMapper, YxS
if (ObjectUtil.isNull(storeProduct)) {
this.removeById(storeCart.getId());
} else if ((ShopCommonEnum.SHOW_0.getValue().equals(storeProduct.getIsShow()) || storeProduct.getStock() == 0) && StrUtil.isEmpty(storeCart.getProductAttrUnique())) {
} else if (ShopCommonEnum.SHOW_0.getValue().equals(storeProduct.getIsShow()) || (storeProduct.getStock() == 0 && StrUtil.isEmpty(storeCart.getProductAttrUnique()))) {
storeCartQueryVo.setProductInfo(storeProduct);
invalid.add(storeCartQueryVo);
} else {