|
|
@ -289,32 +289,35 @@ |
|
|
|
LEFT JOIN cere_product_classify d ON b.classify_id = d.classify_id |
|
|
|
LEFT JOIN (SELECT GROUP_CONCAT(sku_value) `value`, sku_id FROM cere_sku_name GROUP BY sku_id) e |
|
|
|
ON a.sku_id = e.sku_id |
|
|
|
where b.shop_id = #{shopId} |
|
|
|
where b.shop_id in (select shop_id from cere_platform_shop where business_id = #{shopId}) |
|
|
|
and b.shelve_state = 1 |
|
|
|
and a.product_id NOT in (SELECT a.product_id |
|
|
|
FROM cere_shop_group_work_detail a |
|
|
|
LEFT JOIN cere_shop_group_work b ON a.shop_group_work_id = b.shop_group_work_id |
|
|
|
where b.shop_id = #{shopId} |
|
|
|
where b.shop_id in (select shop_id from cere_platform_shop where business_id = #{shopId}) |
|
|
|
and b.state=1) |
|
|
|
and a.product_id NOT in (SELECT a.product_id |
|
|
|
FROM cere_shop_discount_detail a |
|
|
|
LEFT JOIN cere_shop_discount b ON a.shop_discount_id = b.shop_discount_id |
|
|
|
where b.shop_id = #{shopId} |
|
|
|
where b.shop_id in (select shop_id from cere_platform_shop where business_id = #{shopId}) |
|
|
|
and b.state=1) |
|
|
|
and a.product_id NOT in (SELECT a.product_id |
|
|
|
FROM cere_sign_product a |
|
|
|
LEFT JOIN cere_activity_sign b ON a.sign_id = b.sign_id |
|
|
|
LEFT JOIN cere_platform_seckill c |
|
|
|
ON b.activity_id = c.seckill_id and b.sign_type = 2 |
|
|
|
where b.shop_id = #{shopId} |
|
|
|
where b.shop_id in (select shop_id from cere_platform_shop where business_id = #{shopId}) |
|
|
|
and c.state=3) |
|
|
|
and a.product_id NOT in (SELECT a.product_id |
|
|
|
FROM cere_sign_product a |
|
|
|
LEFT JOIN cere_activity_sign b ON a.sign_id = b.sign_id |
|
|
|
LEFT JOIN cere_platform_discount c |
|
|
|
ON b.activity_id = c.discount_id and b.sign_type = 3 |
|
|
|
where b.shop_id = #{shopId} |
|
|
|
where b.shop_id in (select shop_id from cere_platform_shop where business_id = #{shopId}) |
|
|
|
and c.state=3) |
|
|
|
<if test="searchContent != null"> |
|
|
|
and b.product_name like concat('%',#{searchContent},'%') |
|
|
|
</if> |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="findDataProducts" parameterType="java.lang.Object" |
|
|
|