|
|
@ -100,14 +100,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
<select id="analysisTransFlow" resultType="com.alibaba.fastjson.JSONObject">
|
|
|
|
<select id="analysisTransFlow" resultType="com.alibaba.fastjson.JSONObject">
|
|
|
|
SELECT
|
|
|
|
SELECT
|
|
|
|
count(t.transaction_id) order_count,
|
|
|
|
count(DISTINCT o.order_id) order_count,
|
|
|
|
ifnull(sum(if(t.transaction_type='Credit' and t.refund_id is null and o.currency!='CNY',o.display_amount,0)),0)
|
|
|
|
ifnull(sum(if(t.transaction_type='Credit' and t.refund_id is null and t.system_generate=0 and o.currency!='CNY',o.display_amount,0)),0)
|
|
|
|
display_amount,
|
|
|
|
display_amount,
|
|
|
|
ifnull(sum(if(t.transaction_type='Credit' and t.refund_id is null and o.currency!='CNY' and
|
|
|
|
ifnull(sum(if(t.transaction_type='Credit' and t.refund_id is null and t.system_generate=0 and o.currency!='CNY' and
|
|
|
|
o.pre_authorization=1,o.display_amount,0)),0) pre_display_amount,
|
|
|
|
o.pre_authorization=1,o.display_amount,0)),0) pre_display_amount,
|
|
|
|
ifnull(sum(if(t.transaction_type='Credit' and t.refund_id is null and o.currency='CNY',o.display_amount,0)),0)
|
|
|
|
ifnull(sum(if(t.transaction_type='Credit' and t.refund_id is null and t.system_generate=0 and o.currency='CNY',o.display_amount,0)),0)
|
|
|
|
cny_display_amount,
|
|
|
|
cny_display_amount,
|
|
|
|
ifnull(sum(if(t.transaction_type='Credit' and t.refund_id is null and o.currency='CNY' and
|
|
|
|
ifnull(sum(if(t.transaction_type='Credit' and t.refund_id is null and t.system_generate=0 and o.currency='CNY' and
|
|
|
|
o.pre_authorization=1,o.display_amount,0)),0) pre_cny_display_amount,
|
|
|
|
o.pre_authorization=1,o.display_amount,0)),0) pre_cny_display_amount,
|
|
|
|
ifnull(sum(if(t.transaction_type='Credit',t.clearing_amount,0)),0) paid_fee,
|
|
|
|
ifnull(sum(if(t.transaction_type='Credit',t.clearing_amount,0)),0) paid_fee,
|
|
|
|
sum(if(t.transaction_type='Debit' AND t.refund_id is NOT NULL,t.clearing_amount,0))*-1
|
|
|
|
sum(if(t.transaction_type='Debit' AND t.refund_id is NOT NULL,t.clearing_amount,0))*-1
|
|
|
|