|
|
@ -350,7 +350,13 @@ |
|
|
|
where a.product_id=b.product_id GROUP BY a.product_id) c ON a.product_id=c.product_id |
|
|
|
LEFT JOIN cere_platform_shop d ON a.shop_id=d.shop_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="project == 0"> |
|
|
|
and a.plat_shelve_state=1 |
|
|
|
</if> |
|
|
|
<if test="project!=0 and project != ''"> |
|
|
|
and a.shelve_state=1 |
|
|
|
</if> |
|
|
|
<if test="search!=null and search!=''"> |
|
|
|
and a.product_name like concat('%',#{search},'%') |
|
|
|
</if> |
|
|
|