|
|
@ -287,7 +287,7 @@ |
|
|
|
LEFT JOIN (SELECT a.product_id,a.product_image from cere_product_image a,cere_shop_product b where a.product_id=b.product_id GROUP BY a.product_id) d |
|
|
|
ON a.product_id=d.product_id |
|
|
|
LEFT JOIN cere_product_classify e ON a.classify_id=e.classify_id |
|
|
|
where a.shop_id=#{shopId} and a.shelve_state = 1 |
|
|
|
where a.shelve_state = 1 and a.shop_id in (select shop_id from cere_platform_shop where business_id = #{shopId}) |
|
|
|
<if test='condition=="1"'> |
|
|
|
and a.product_id like concat('%',#{search},'%') |
|
|
|
</if> |
|
|
@ -295,7 +295,7 @@ |
|
|
|
and a.product_name like concat('%',#{search},'%') |
|
|
|
</if> |
|
|
|
<if test="classifyId!=null"> |
|
|
|
and (a.classify_id=#{classifyId} or e.classify_level_hierarchy like concat('%/',#{classifyId},'%')) |
|
|
|
and (a.classify_business_id=#{classifyId} or e.classify_level_hierarchy like concat('%/',#{classifyId},'%')) |
|
|
|
</if> |
|
|
|
<if test="groupId!=null"> |
|
|
|
and a.shop_group_id=#{groupId} |
|
|
|