From 3f8cff5a8006fee177a5cc82d4d1ac8cbdcee7fd Mon Sep 17 00:00:00 2001 From: yixian Date: Tue, 24 Nov 2020 18:25:36 +1100 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=B4=A6=E5=8D=95=E4=BF=AE?= =?UTF-8?q?=E5=A4=8Dsql?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../manage/mappers/payment/RefundMapper.java | 2 -- .../manage/mappers/payment/OrderMapper.xml | 20 ++++++------------- .../manage/mappers/payment/RefundMapper.xml | 4 ++++ 3 files changed, 10 insertions(+), 16 deletions(-) diff --git a/src/main/java/au/com/royalpay/payment/manage/mappers/payment/RefundMapper.java b/src/main/java/au/com/royalpay/payment/manage/mappers/payment/RefundMapper.java index 6284d9064..dd4926da6 100644 --- a/src/main/java/au/com/royalpay/payment/manage/mappers/payment/RefundMapper.java +++ b/src/main/java/au/com/royalpay/payment/manage/mappers/payment/RefundMapper.java @@ -45,8 +45,6 @@ public interface RefundMapper { @AutoSql(SqlType.SELECT) JSONObject findByOutRefundId(@Param("out_refund_id") String outRefundNo); - @AutoSql(SqlType.SELECT) - @AdvanceSelect(addonWhereClause = "status=4 and confirm_time is not null and refund_id not in (select refund_id from pmt_transactions where refund_id is not null)") List listConfirmedRefundsWithNoTransactions(); JSONObject findRefundInfoByDay(@Param("begin") Date begin, @Param("end") Date end); diff --git a/src/main/resources/au/com/royalpay/payment/manage/mappers/payment/OrderMapper.xml b/src/main/resources/au/com/royalpay/payment/manage/mappers/payment/OrderMapper.xml index b03e0d00d..e0f911fc8 100644 --- a/src/main/resources/au/com/royalpay/payment/manage/mappers/payment/OrderMapper.xml +++ b/src/main/resources/au/com/royalpay/payment/manage/mappers/payment/OrderMapper.xml @@ -758,20 +758,12 @@ diff --git a/src/main/resources/au/com/royalpay/payment/manage/mappers/payment/RefundMapper.xml b/src/main/resources/au/com/royalpay/payment/manage/mappers/payment/RefundMapper.xml index 0bc54e7fb..ee43e6e60 100644 --- a/src/main/resources/au/com/royalpay/payment/manage/mappers/payment/RefundMapper.xml +++ b/src/main/resources/au/com/royalpay/payment/manage/mappers/payment/RefundMapper.xml @@ -128,4 +128,8 @@ order by create_time desc + \ No newline at end of file