Browse Source

商品搜索查询添加平台上架状态过滤

multiwx
dy-hu 11 months ago
parent
commit
295b1e5602
  1. 7
      cereshop-app/src/main/resources/mybatis/mapper/product/CereProductClassifyDAO.xml

7
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
<if test="classifyId!=null">
and (a.classify_id=#{classifyId} OR e.classify_level_hierarchy like concat('%/',#{classifyId},'%') OR a.classify_business_id=#{classifyId})
</if>
@ -214,7 +214,10 @@
and a.product_name like concat('%',#{productName},'%')
</if>
<if test='project !=null and project !="" and project != "0"'>
and d.business_id = #{project}
and d.business_id = #{project} and a.shelve_state=1
</if>
<if test="project==0">
AND a.plat_shelve_state=1
</if>
ORDER BY

Loading…
Cancel
Save