|
|
|
@ -1220,7 +1220,7 @@
|
|
|
|
|
<select id="getSettleDataDailyReport" resultType="com.alibaba.fastjson.JSONObject">
|
|
|
|
|
SELECT
|
|
|
|
|
channel,
|
|
|
|
|
SUM(IF(transaction_type = 'Credit', settle_amount, 0)) AS settle_amount,
|
|
|
|
|
SUM(IF(transaction_type = 'Credit', settle_amount, -settle_amount)) AS settle_amount,
|
|
|
|
|
SUM(IF(transaction_type = 'Credit', clearing_amount, 0)) AS credit_amount,
|
|
|
|
|
SUM(IF(transaction_type = 'Credit', 0, -clearing_amount)) AS debit_amount,
|
|
|
|
|
SUM(IF(transaction_type = 'Credit', clearing_amount, -clearing_amount)) AS net_trading,
|
|
|
|
|