Эх сурвалжийг харах

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

macro 2 жил өмнө
parent
commit
4dd6376bd4

+ 1 - 0
mall-portal/src/main/java/com/macro/mall/portal/service/impl/PortalBrandServiceImpl.java

@@ -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);