Browse Source

商城移动端画布首页处理过滤平台上架商品业务功能

multiwx
dy-hu 7 months ago
parent
commit
692132be6f
  1. 8
      cereshop-app/src/main/resources/mybatis/mapper/product/CereShopProductDAO.xml

8
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
<if test="project!=null and project!='' and project!=0">
AND d.business_id=#{project}
</if>
@ -479,6 +479,12 @@
OR a.classify_business_id=#{classifyId} OR cpcb.classify_level_hierarchy like concat('%/',#{classifyId},'%')
)
</if>
<if test="project!=null and project!='' and project!=0">
and d.business_id=#{project} and a.shelve_state=1
</if>
<if test="project==0">
AND a.plat_shelve_state=1
</if>
<if test="ids!=null and ids.size()>0">
and a.product_id in (
<foreach collection="ids" item="id" index="index" separator=",">

Loading…
Cancel
Save