From 92d281a15a350a828aa2506ad2d72043af38864a Mon Sep 17 00:00:00 2001 From: dy-hu Date: Wed, 26 Jun 2024 10:49:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=9F=8EPC=E7=AB=AF=E7=94=BB=E5=B8=83?= =?UTF-8?q?=E9=A6=96=E9=A1=B5=E5=A4=84=E7=90=86=E8=BF=87=E6=BB=A4=E5=B9=B3?= =?UTF-8?q?=E5=8F=B0=E4=B8=8A=E6=9E=B6=E5=95=86=E5=93=81=E4=B8=9A=E5=8A=A1?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/resources/mybatis/mapper/product/CereShopProductDAO.xml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 18adb72..45d723a 100644 --- a/cereshop-app/src/main/resources/mybatis/mapper/product/CereShopProductDAO.xml +++ b/cereshop-app/src/main/resources/mybatis/mapper/product/CereShopProductDAO.xml @@ -409,7 +409,7 @@ LEFT JOIN (SELECT a.sku_id,a.image from cere_sku_name a,cere_product_sku b where a.sku_id=b.sku_id LIMIT 1) h ON b.sku_id=h.sku_id LEFT JOIN (SELECT COUNT(a.buyer_user_id) users,a.product_id FROM (SELECT b.buyer_user_id,a.product_id FROM cere_order_product a,cere_shop_order b where a.order_id=b.order_id and b.state in (2,3,4) GROUP BY a.product_id,b.buyer_user_id) a GROUP BY a.product_id) x ON a.product_id=x.product_id - where a.shelve_state=1 and d.state=1 + where d.state=1 and (d.shop_name like concat('%',#{search},'%') OR a.product_id like concat('%',#{search},'%') OR @@ -423,7 +423,10 @@ OR a.classify_business_id=#{classifyId} OR cpcb.classify_level_hierarchy like concat('%/',#{classifyId},'%')) - AND d.business_id=#{project} + and d.business_id=#{project} and a.shelve_state=1 + + + AND a.plat_shelve_state=1 and a.product_id in (