分页获取品牌关联商品逻辑修改

This commit is contained in:
macro
2022-11-05 15:05:58 +08:00
parent 11b48867b9
commit 4dd6376bd4

View File

@@ -43,6 +43,7 @@ public class PortalBrandServiceImpl implements PortalBrandService {
PageHelper.startPage(pageNum,pageSize);
PmsProductExample example = new PmsProductExample();
example.createCriteria().andDeleteStatusEqualTo(0)
.andPublishStatusEqualTo(1)
.andBrandIdEqualTo(brandId);
List<PmsProduct> productList = productMapper.selectByExample(example);
return CommonPage.restPage(productList);