|
@@ -27,7 +27,7 @@
|
|
LEFT JOIN t_order o ON i.`order_id` = o.`id`
|
|
LEFT JOIN t_order o ON i.`order_id` = o.`id`
|
|
left join t_receiver_info re on i.user_id = re.user_id
|
|
left join t_receiver_info re on i.user_id = re.user_id
|
|
WHERE i.`consume_type` = 0 AND i.`rec_status` = 'A' AND o.`rec_status` = 'A' AND i.`type` != 1
|
|
WHERE i.`consume_type` = 0 AND i.`rec_status` = 'A' AND o.`rec_status` = 'A' AND i.`type` != 1
|
|
- and re.status = 'A'
|
|
|
|
|
|
+ and re.rec_status = 'A'
|
|
<if test="param.orderSn != null and param.orderSn != ''">
|
|
<if test="param.orderSn != null and param.orderSn != ''">
|
|
and o.`order_sn` like concat('%', #{param.orderSn}, '%')
|
|
and o.`order_sn` like concat('%', #{param.orderSn}, '%')
|
|
</if>
|
|
</if>
|