|
|
|
@ -200,6 +200,8 @@
|
|
|
|
|
THEN 'MICROAPP'
|
|
|
|
|
WHEN 13
|
|
|
|
|
THEN 'Native QR Code'
|
|
|
|
|
WHEN 14
|
|
|
|
|
THEN 'Share Link'
|
|
|
|
|
END AS gateway_label,
|
|
|
|
|
ifnull(sum(if(l.transaction_type='Credit',l.clearing_amount,0)), 0) aud_fee
|
|
|
|
|
FROM pmt_transactions l
|
|
|
|
@ -463,6 +465,8 @@
|
|
|
|
|
THEN 'MICROAPP'
|
|
|
|
|
WHEN 13
|
|
|
|
|
THEN 'Native QR Code'
|
|
|
|
|
WHEN 14
|
|
|
|
|
THEN 'Share Link'
|
|
|
|
|
END AS gateway_label,
|
|
|
|
|
ifnull(COUNT(DISTINCT l.client_id), 0) partner_count
|
|
|
|
|
FROM pmt_transactions l
|
|
|
|
@ -526,6 +530,9 @@
|
|
|
|
|
<if test="trade_type=='Native QR Code'">
|
|
|
|
|
and o.gateway=13
|
|
|
|
|
</if>
|
|
|
|
|
<if test="trade_type=='Share Link'">
|
|
|
|
|
and o.gateway=14
|
|
|
|
|
</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>
|
|
|
|
@ -615,6 +622,9 @@
|
|
|
|
|
<if test="trade_type=='Native QR Code'">
|
|
|
|
|
and o.gateway=13
|
|
|
|
|
</if>
|
|
|
|
|
<if test="trade_type=='Share Link'">
|
|
|
|
|
and o.gateway=14
|
|
|
|
|
</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>
|
|
|
|
|