|
@@ -18,13 +18,14 @@
|
|
|
i.`register_phone` as registerPhone,
|
|
|
i.`bank_name` as bankName,
|
|
|
i.`bank_account` as bankAccount,
|
|
|
- i.`ship_name` as shipName,
|
|
|
- i.`ship_mobile` as shipMobile,
|
|
|
- i.`ship_address` as shipAddress,
|
|
|
+ re.`ship_name` as shipName,
|
|
|
+ re.`ship_mobile` as shipMobile,
|
|
|
+ re.`ship_address` as shipAddress,
|
|
|
i.`email_address` AS email,
|
|
|
i.`invoiced`
|
|
|
FROM t_invoice i
|
|
|
LEFT JOIN t_order o ON i.`order_id` = o.`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
|
|
|
<if test="param.orderSn != null and param.orderSn != ''">
|
|
|
and o.`order_sn` like concat('%', #{param.orderSn}, '%')
|