|
|
@ -284,7 +284,7 @@
|
|
|
|
<select id="tradeAnalysisInDay" resultType="com.alibaba.fastjson.JSONObject">
|
|
|
|
<select id="tradeAnalysisInDay" resultType="com.alibaba.fastjson.JSONObject">
|
|
|
|
<![CDATA[
|
|
|
|
<![CDATA[
|
|
|
|
SELECT
|
|
|
|
SELECT
|
|
|
|
date_format(#{end}, '%Y-%m-%d') date_str,
|
|
|
|
date_format(#{begin}, '%Y-%m-%d') date_str,
|
|
|
|
ifnull(sum(if(l.transaction_type = 'Credit', l.clearing_amount,0)), 0) aud_fee,
|
|
|
|
ifnull(sum(if(l.transaction_type = 'Credit', l.clearing_amount,0)), 0) aud_fee,
|
|
|
|
ifnull(sum(if(l.transaction_type='Credit' and l.refund_id is null,1,0)),0) order_count
|
|
|
|
ifnull(sum(if(l.transaction_type='Credit' and l.refund_id is null,1,0)),0) order_count
|
|
|
|
FROM pmt_transactions l
|
|
|
|
FROM pmt_transactions l
|
|
|
|