|
|
@ -64,6 +64,36 @@
|
|
|
|
WHEN 2 THEN 'Preauthorised'
|
|
|
|
WHEN 2 THEN 'Preauthorised'
|
|
|
|
END) clear_status,
|
|
|
|
END) clear_status,
|
|
|
|
o.order_detail,o.display_amount,o.channel,o.currency,o.pre_authorization,
|
|
|
|
o.order_detail,o.display_amount,o.channel,o.currency,o.pre_authorization,
|
|
|
|
|
|
|
|
CASE o.gateway
|
|
|
|
|
|
|
|
WHEN 0
|
|
|
|
|
|
|
|
THEN 'Retail In-Store'
|
|
|
|
|
|
|
|
WHEN 1
|
|
|
|
|
|
|
|
THEN 'Retail In-Store'
|
|
|
|
|
|
|
|
WHEN 2
|
|
|
|
|
|
|
|
THEN 'QR Code'
|
|
|
|
|
|
|
|
WHEN 3
|
|
|
|
|
|
|
|
THEN 'Online API'
|
|
|
|
|
|
|
|
WHEN 4
|
|
|
|
|
|
|
|
THEN 'WeChat HTML5'
|
|
|
|
|
|
|
|
WHEN 5
|
|
|
|
|
|
|
|
THEN 'Retail API'
|
|
|
|
|
|
|
|
WHEN 6
|
|
|
|
|
|
|
|
THEN 'Retail API'
|
|
|
|
|
|
|
|
WHEN 7
|
|
|
|
|
|
|
|
THEN 'QR Code'
|
|
|
|
|
|
|
|
WHEN 8
|
|
|
|
|
|
|
|
THEN 'Mobile H5'
|
|
|
|
|
|
|
|
WHEN 9
|
|
|
|
|
|
|
|
THEN 'Third Party Gateway'
|
|
|
|
|
|
|
|
WHEN 10
|
|
|
|
|
|
|
|
THEN 'APP'
|
|
|
|
|
|
|
|
WHEN 12
|
|
|
|
|
|
|
|
THEN 'MICROAPP'
|
|
|
|
|
|
|
|
WHEN 13
|
|
|
|
|
|
|
|
THEN 'Native QR Code'
|
|
|
|
|
|
|
|
WHEN 14
|
|
|
|
|
|
|
|
THEN 'Share Link'
|
|
|
|
|
|
|
|
END AS gateway,
|
|
|
|
CASE o.channel
|
|
|
|
CASE o.channel
|
|
|
|
WHEN 'Alipay' THEN ra.login_id
|
|
|
|
WHEN 'Alipay' THEN ra.login_id
|
|
|
|
WHEN 'AlipayOnline' THEN ra.login_email
|
|
|
|
WHEN 'AlipayOnline' THEN ra.login_email
|
|
|
@ -926,4 +956,4 @@ select sum(if(temp.transaction_type='Credit',temp.clearing_amount*d.proportion,
|
|
|
|
order by period_start
|
|
|
|
order by period_start
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
</mapper>
|
|
|
|
</mapper>
|
|
|
|