|
|
|
@ -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 @@
|
|
|
|
|
<if test="trade_type=='Third Party Gateway'">
|
|
|
|
|
and o.gateway=9
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
|
|
<if test="trade_type=='APP'">
|
|
|
|
|
and o.gateway=10
|
|
|
|
|
</if>
|
|
|
|
|
<if test="trade_type=='Share Code'">
|
|
|
|
|
and o.gateway=11
|
|
|
|
|
</if>
|
|
|
|
|
<if test="org_id!=null">and l.org_id=#{org_id}</if>
|
|
|
|
|
<if test="bd_group!=null">and l.client_id in
|
|
|
|
|
(SELECT b.client_id FROM sys_client_bd b
|
|
|
|
@ -543,6 +549,9 @@
|
|
|
|
|
<if test="trade_type=='APP'">
|
|
|
|
|
and o.gateway=10
|
|
|
|
|
</if>
|
|
|
|
|
<if test="trade_type=='Share Code'">
|
|
|
|
|
and o.gateway=11
|
|
|
|
|
</if>
|
|
|
|
|
<if test="org_id!=null">and ptran.org_id=#{org_id}</if>
|
|
|
|
|
</select>
|
|
|
|
|
<select id="listExchangeRates" resultType="com.alibaba.fastjson.JSONObject">
|
|
|
|
|