Commit 4dd6376b authored by macro's avatar macro
Browse files

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

parent 11b48867
...@@ -43,6 +43,7 @@ public class PortalBrandServiceImpl implements PortalBrandService { ...@@ -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);
......
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