From f4cb0221fe493294011d1d41f08ede5596755054 Mon Sep 17 00:00:00 2001 From: yuan <1551130722@qq.com> Date: Wed, 28 Feb 2018 10:11:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=A4=E6=98=93=E9=A2=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../analysis/mappers/BDAnalysisMapper.xml | 5 -- .../analysis/mappers/ClientAnalysisMapper.xml | 3 - .../CustomerAndOrdersStatisticsMapper.xml | 15 +---- .../analysis/mappers/OrderAnalysisMapper.xml | 4 -- .../mappers/TransactionAnalysisMapper.xml | 67 +++++-------------- .../manage/mappers/payment/OrderMapper.xml | 14 ++-- .../mappers/payment/TransactionMapper.xml | 15 ++--- 7 files changed, 25 insertions(+), 98 deletions(-) diff --git a/src/main/resources/au/com/royalpay/payment/manage/analysis/mappers/BDAnalysisMapper.xml b/src/main/resources/au/com/royalpay/payment/manage/analysis/mappers/BDAnalysisMapper.xml index 886be691b..305285002 100644 --- a/src/main/resources/au/com/royalpay/payment/manage/analysis/mappers/BDAnalysisMapper.xml +++ b/src/main/resources/au/com/royalpay/payment/manage/analysis/mappers/BDAnalysisMapper.xml @@ -1,8 +1,6 @@ - - - - - - - GROUP BY s.date ORDER BY date DESC - - + --> - - - - - - - - - - + - - + - - + - - - - - - - - - + - - + - - + - - + - - + --> - - + - - + - - + and t.clearing_amount < #{amount_to} - - + - - + SELECT temp.* FROM ( @@ -250,9 +249,7 @@ GROUP BY o.order_id,t.refund_id order by o.create_time - - + - - + - - + - - - - + - + - + SELECT sum(if(t.transaction_type = 'Credit', t.clearing_amount, -t.clearing_amount)) @@ -523,8 +519,7 @@ GROUP BY so.org_id, trade_date,t.client_id ORDER BY c.org_id ASC, t.client_id ASC, trade_date ASC - - +