diff --git a/cereshop-app/src/main/resources/mybatis/mapper/product/CereProductClassifyDAO.xml b/cereshop-app/src/main/resources/mybatis/mapper/product/CereProductClassifyDAO.xml index 6e34b34..7636d1c 100644 --- a/cereshop-app/src/main/resources/mybatis/mapper/product/CereProductClassifyDAO.xml +++ b/cereshop-app/src/main/resources/mybatis/mapper/product/CereProductClassifyDAO.xml @@ -206,7 +206,7 @@ INNER JOIN cere_platform_shop d ON a.shop_id=d.shop_id INNER JOIN cere_product_classify e ON a.classify_id=e.classify_id OR a.classify_business_id=e.classify_id LEFT JOIN (SELECT SUM(number) number,sku_id,order_id from cere_order_product GROUP BY sku_id) f ON b.sku_id=f.sku_id - where a.shelve_state=1 and d.state=1 + where d.state=1 and (a.classify_id=#{classifyId} OR e.classify_level_hierarchy like concat('%/',#{classifyId},'%') OR a.classify_business_id=#{classifyId}) @@ -214,7 +214,10 @@ and a.product_name like concat('%',#{productName},'%') - and d.business_id = #{project} + and d.business_id = #{project} and a.shelve_state=1 + + + AND a.plat_shelve_state=1 ORDER BY