|
@@ -3,9 +3,9 @@
|
|
|
<mapper namespace="com.fdkankan.manage.mapper.IInvoiceMapper">
|
|
|
|
|
|
<select id="pageInvoice" resultType="com.fdkankan.manage.vo.InvoiceVO">
|
|
|
- select * from(
|
|
|
+ select * from(
|
|
|
/*配件订单发票*/
|
|
|
- SELECT
|
|
|
+ SELECT distinct
|
|
|
i.`id`,
|
|
|
o.`order_sn`,
|
|
|
o.`finish_time` AS payTime,
|
|
@@ -27,6 +27,7 @@
|
|
|
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
|
|
|
+ and re.status = 'A'
|
|
|
<if test="param.orderSn != null and param.orderSn != ''">
|
|
|
and o.`order_sn` like concat('%', #{param.orderSn}, '%')
|
|
|
</if>
|