浏览代码

前台商品查询逻辑修改

macro 2 年之前
父节点
当前提交
b97292aa3b

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

@@ -47,6 +47,7 @@ public class PmsPortalProductServiceImpl implements PmsPortalProductService {
         PmsProductExample example = new PmsProductExample();
         PmsProductExample.Criteria criteria = example.createCriteria();
         criteria.andDeleteStatusEqualTo(0);
+        criteria.andPublishStatusEqualTo(1);
         if (StrUtil.isNotEmpty(keyword)) {
             criteria.andNameLike("%" + keyword + "%");
         }