分页获取品牌关联商品逻辑修改
This commit is contained in:
@@ -43,6 +43,7 @@ public class PortalBrandServiceImpl implements PortalBrandService {
|
|||||||
PageHelper.startPage(pageNum,pageSize);
|
PageHelper.startPage(pageNum,pageSize);
|
||||||
PmsProductExample example = new PmsProductExample();
|
PmsProductExample example = new PmsProductExample();
|
||||||
example.createCriteria().andDeleteStatusEqualTo(0)
|
example.createCriteria().andDeleteStatusEqualTo(0)
|
||||||
|
.andPublishStatusEqualTo(1)
|
||||||
.andBrandIdEqualTo(brandId);
|
.andBrandIdEqualTo(brandId);
|
||||||
List<PmsProduct> productList = productMapper.selectByExample(example);
|
List<PmsProduct> productList = productMapper.selectByExample(example);
|
||||||
return CommonPage.restPage(productList);
|
return CommonPage.restPage(productList);
|
||||||
|
|||||||
Reference in New Issue
Block a user