|
|
@ -513,7 +513,6 @@ |
|
|
|
LEFT JOIN cere_shop_comment sc ON sc.order_id = a.order_id |
|
|
|
</if> |
|
|
|
where a.buyer_user_id=#{buyerUserId} |
|
|
|
and a.order_id>=(select order_id from cere_shop_order where buyer_user_id=#{buyerUserId} limit #{page},1) |
|
|
|
<if test="search!=null and search!=''"> |
|
|
|
and (a.order_formid like concat('%',#{search},'%') OR |
|
|
|
f.product_name like concat('%',#{search},'%')) |
|
|
@ -521,6 +520,9 @@ |
|
|
|
<if test="state!=null and state!=''"> |
|
|
|
and a.state = #{state} |
|
|
|
</if> |
|
|
|
<if test="businessId!=null and businessId!=''"> |
|
|
|
and a.project = #{businessId} |
|
|
|
</if> |
|
|
|
GROUP BY a.order_id |
|
|
|
<if test="state != null and state == 4"> |
|
|
|
HAVING op_count != sc_count |
|
|
|