Commit 0a0e9974 authored by Junling Bu's avatar Junling Bu
Browse files

fix[litemall-db]: 购物车商品是否存在需要过滤已删除商品。

parent 878a921a
...@@ -114,7 +114,7 @@ public class LitemallCartService { ...@@ -114,7 +114,7 @@ public class LitemallCartService {
public boolean checkExist(Integer goodsId) { public boolean checkExist(Integer goodsId) {
LitemallCartExample example = new LitemallCartExample(); LitemallCartExample example = new LitemallCartExample();
example.or().andGoodsIdEqualTo(goodsId).andCheckedEqualTo(true); example.or().andGoodsIdEqualTo(goodsId).andCheckedEqualTo(true).andDeletedEqualTo(false);
return cartMapper.countByExample(example) != 0; return cartMapper.countByExample(example) != 0;
} }
} }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment