|
|
|
@ -367,10 +367,11 @@
|
|
|
|
|
<if test="client_ids==null">
|
|
|
|
|
and (c.client_id=#{client_id} or c.parent_client_id=#{client_id})
|
|
|
|
|
</if>
|
|
|
|
|
<if test="from!=null">and t.transaction_time >= #{from}</if>
|
|
|
|
|
<if test="to!=null">and t.transaction_time < #{to}</if>
|
|
|
|
|
<if test="from!=null">and t.create_time >= #{from}</if>
|
|
|
|
|
<if test="to!=null">and t.create_time < #{to}</if>
|
|
|
|
|
<if test="from!=null">and t.channel!= 'Settlement' </if>
|
|
|
|
|
<if test="transaction_type!=null">and t.transaction_type=#{transaction_type}</if>
|
|
|
|
|
<if test="date!=null">and date(t.transaction_time)=date(#{date})</if>
|
|
|
|
|
<if test="date!=null">and date(t.create_time)=date(#{date})</if>
|
|
|
|
|
<if test="clearing_status!=null">and t.clearing_status=#{clearing_status}</if>
|
|
|
|
|
<if test="trans_type==1">and t.transaction_type = 'Credit'</if>
|
|
|
|
|
<if test="trans_type==2">and t.refund_id is NOT NULL</if>
|
|
|
|
|