diff --git a/cereshop-app/src/main/resources/mybatis/mapper/product/CereShopProductDAO.xml b/cereshop-app/src/main/resources/mybatis/mapper/product/CereShopProductDAO.xml index 45d723a..10c7eb3 100644 --- a/cereshop-app/src/main/resources/mybatis/mapper/product/CereShopProductDAO.xml +++ b/cereshop-app/src/main/resources/mybatis/mapper/product/CereShopProductDAO.xml @@ -461,7 +461,7 @@ LEFT JOIN cere_product_classify e ON a.classify_id=e.classify_id LEFT JOIN cere_product_classify cpcb ON a.classify_business_id=cpcb.classify_id LEFT JOIN (SELECT SUM(number) number,product_id,order_id from cere_order_product GROUP BY product_id) f ON a.product_id=f.product_id - where a.shelve_state=1 and d.state=1 + where d.state=1 AND d.business_id=#{project} @@ -479,6 +479,12 @@ OR a.classify_business_id=#{classifyId} OR cpcb.classify_level_hierarchy like concat('%/',#{classifyId},'%') ) + + and d.business_id=#{project} and a.shelve_state=1 + + + AND a.plat_shelve_state=1 + and a.product_id in (