From f89ae4b174399135b4e293b6e09bc91b0ecd5bdc Mon Sep 17 00:00:00 2001 From: kira <164851225@qq.com> Date: Mon, 30 Jul 2018 20:49:30 +0800 Subject: [PATCH] update --- .../manage/mappers/custom/CustomReportsMapper.xml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/resources/au/com/royalpay/payment/manage/mappers/custom/CustomReportsMapper.xml b/src/main/resources/au/com/royalpay/payment/manage/mappers/custom/CustomReportsMapper.xml index 723e91688..da79f0d7a 100644 --- a/src/main/resources/au/com/royalpay/payment/manage/mappers/custom/CustomReportsMapper.xml +++ b/src/main/resources/au/com/royalpay/payment/manage/mappers/custom/CustomReportsMapper.xml @@ -11,6 +11,12 @@ left join pmt_transactions t on o.order_id = t.order_id + left join + pmt_custom_reports r + on r.order_id = o.order_id + where + o.channel = 'Alipay' + and o.client_id = #{client_id} and transaction_type = 'Credit' and o.status in ( @@ -18,12 +24,7 @@ #{item} ) - left join - pmt_custom_reports r - on r.order_id = o.order_id - and o.client_id = #{client_id} - and o.channel = 'Alipay' - + @@ -33,7 +34,6 @@ and r.report_status = #{report_status} - order by transaction_time desc