From 2d4c434d9db74c4d6b7513ff6c98e47ad93f03df Mon Sep 17 00:00:00 2001 From: "eason.qian" Date: Mon, 25 Dec 2017 21:44:48 +0800 Subject: [PATCH] fix --- .../analysis/mappers/TransactionAnalysisMapper.xml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/main/resources/au/com/royalpay/payment/manage/analysis/mappers/TransactionAnalysisMapper.xml b/src/main/resources/au/com/royalpay/payment/manage/analysis/mappers/TransactionAnalysisMapper.xml index 33d18537a..3469b71ad 100644 --- a/src/main/resources/au/com/royalpay/payment/manage/analysis/mappers/TransactionAnalysisMapper.xml +++ b/src/main/resources/au/com/royalpay/payment/manage/analysis/mappers/TransactionAnalysisMapper.xml @@ -188,6 +188,8 @@ THEN 'Third Party Gateway' WHEN 10 THEN 'APP' + WHEN 11 + THEN 'Share Code' END AS gateway_label, ifnull(sum(if(l.transaction_type='Credit',l.clearing_amount,-l.clearing_amount)), 0) aud_fee FROM pmt_transactions l @@ -414,6 +416,8 @@ THEN 'Third Party Gateway' WHEN 10 THEN 'APP' + WHEN 11 + THEN 'Share Code' END AS gateway_label, ifnull(COUNT(DISTINCT l.client_id), 0) partner_count FROM pmt_transactions l @@ -462,10 +466,12 @@ and o.gateway=9 - and o.gateway=10 + + and o.gateway=11 + and l.org_id=#{org_id} and l.client_id in (SELECT b.client_id FROM sys_client_bd b @@ -543,6 +549,9 @@ and o.gateway=10 + + and o.gateway=11 + and ptran.org_id=#{org_id}