|
|
|
|
@ -196,6 +196,10 @@
|
|
|
|
|
THEN 'APP'
|
|
|
|
|
WHEN 11
|
|
|
|
|
THEN 'Share Code'
|
|
|
|
|
WHEN 12
|
|
|
|
|
THEN 'MICROAPP'
|
|
|
|
|
WHEN 13
|
|
|
|
|
THEN 'Native QR Code'
|
|
|
|
|
END AS gateway_label,
|
|
|
|
|
ifnull(sum(if(l.transaction_type='Credit',l.clearing_amount,0)), 0) aud_fee
|
|
|
|
|
FROM pmt_transactions l
|
|
|
|
|
@ -455,6 +459,10 @@
|
|
|
|
|
THEN 'APP'
|
|
|
|
|
WHEN 11
|
|
|
|
|
THEN 'Share Code'
|
|
|
|
|
WHEN 12
|
|
|
|
|
THEN 'MICROAPP'
|
|
|
|
|
WHEN 13
|
|
|
|
|
THEN 'Native QR Code'
|
|
|
|
|
END AS gateway_label,
|
|
|
|
|
ifnull(COUNT(DISTINCT l.client_id), 0) partner_count
|
|
|
|
|
FROM pmt_transactions l
|
|
|
|
|
@ -512,6 +520,12 @@
|
|
|
|
|
<if test="trade_type=='Share Code'">
|
|
|
|
|
and o.gateway=11
|
|
|
|
|
</if>
|
|
|
|
|
<if test="trade_type=='MICROAPP'">
|
|
|
|
|
and o.gateway=12
|
|
|
|
|
</if>
|
|
|
|
|
<if test="trade_type=='Native QR Code'">
|
|
|
|
|
and o.gateway=13
|
|
|
|
|
</if>
|
|
|
|
|
<if test="org_id!=null and org_ids==null">and l.org_id=#{org_id}</if>
|
|
|
|
|
<if test="org_ids!=null">and l.org_id in
|
|
|
|
|
<foreach collection="org_ids" item="org_id" open="(" close=")" separator=",">#{org_id}</foreach></if>
|
|
|
|
|
@ -595,6 +609,12 @@
|
|
|
|
|
<if test="trade_type=='Share Code'">
|
|
|
|
|
and o.gateway=11
|
|
|
|
|
</if>
|
|
|
|
|
<if test="trade_type=='MICROAPP'">
|
|
|
|
|
and o.gateway=12
|
|
|
|
|
</if>
|
|
|
|
|
<if test="trade_type=='Native QR Code'">
|
|
|
|
|
and o.gateway=13
|
|
|
|
|
</if>
|
|
|
|
|
<if test="org_id!=null and org_ids==null">and ptran.org_id=#{org_id}</if>
|
|
|
|
|
<if test="org_ids!=null">and ptran.org_id in
|
|
|
|
|
<foreach collection="org_ids" item="org_id" open="(" close=")" separator=",">#{org_id}</foreach></if>
|
|
|
|
|
|