|
|
@ -670,7 +670,13 @@ |
|
|
|
LEFT JOIN cere_shop_group_work h ON a.shop_group_work_id=h.shop_group_work_id |
|
|
|
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) m ON a.sku_id=m.sku_id |
|
|
|
LEFT JOIN cere_product_sku n ON a.sku_id=n.sku_id |
|
|
|
where b.shelve_state=1 and h.state=1 and d.state=1 |
|
|
|
where h.state=1 and d.state=1 |
|
|
|
<if test="project == 0"> |
|
|
|
and b.plat_shelve_state=1 |
|
|
|
</if> |
|
|
|
<if test="project!=0 and project != ''"> |
|
|
|
and b.shelve_state=1 |
|
|
|
</if> |
|
|
|
<if test="shopId!=null"> |
|
|
|
and b.shop_id=#{shopId} |
|
|
|
</if> |
|
|
@ -720,7 +726,13 @@ |
|
|
|
LEFT JOIN cere_shop_seckill h ON a.shop_seckill_id=h.shop_seckill_id |
|
|
|
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) m ON a.sku_id=m.sku_id |
|
|
|
LEFT JOIN cere_product_sku n ON a.sku_id=n.sku_id |
|
|
|
where b.shelve_state=1 and h.state=1 and d.state=1 |
|
|
|
where h.state=1 and d.state=1 |
|
|
|
<if test="project == 0"> |
|
|
|
and b.plat_shelve_state=1 |
|
|
|
</if> |
|
|
|
<if test="project!=0 and project != ''"> |
|
|
|
and b.shelve_state=1 |
|
|
|
</if> |
|
|
|
<if test="shopId!=null"> |
|
|
|
and b.shop_id=#{shopId} |
|
|
|
</if> |
|
|
@ -764,7 +776,13 @@ |
|
|
|
LEFT JOIN cere_shop_discount h ON a.shop_discount_id=h.shop_discount_id |
|
|
|
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) m ON a.sku_id=m.sku_id |
|
|
|
LEFT JOIN cere_product_sku n ON a.sku_id=n.sku_id |
|
|
|
where b.shelve_state=1 and h.state=1 and d.state=1 |
|
|
|
where h.state=1 and d.state=1 |
|
|
|
<if test="project == 0"> |
|
|
|
and b.plat_shelve_state=1 |
|
|
|
</if> |
|
|
|
<if test="project!=0 and project != ''"> |
|
|
|
and b.shelve_state=1 |
|
|
|
</if> |
|
|
|
<if test="shopId!=null"> |
|
|
|
and b.shop_id=#{shopId} |
|
|
|
</if> |
|
|
|