fix[litemall-db]: 查询品牌商时过滤已删除

This commit is contained in:
Junling Bu
2018-11-07 08:58:21 +08:00
parent 3bd1d03954
commit 140100c63a

View File

@@ -83,6 +83,8 @@ public class LitemallBrandService {
}
public List<LitemallBrand> all() {
return brandMapper.selectByExample(new LitemallBrandExample());
LitemallBrandExample example = new LitemallBrandExample();
example.or().andDeletedEqualTo(false);
return brandMapper.selectByExample(example);
}
}