chore[litemall-db]: 查询商品时不基于是否在售字段

This commit is contained in:
Junling Bu
2019-03-12 17:07:04 +08:00
parent 5cd86f69fb
commit c9342a2e27

View File

@@ -154,7 +154,7 @@ public class LitemallGoodsService {
*/
public LitemallGoods findById(Integer id) {
LitemallGoodsExample example = new LitemallGoodsExample();
example.or().andIdEqualTo(id).andIsOnSaleEqualTo(true).andDeletedEqualTo(false);
example.or().andIdEqualTo(id).andDeletedEqualTo(false);
return goodsMapper.selectOneByExampleWithBLOBs(example);
}