|
|
@ -1074,10 +1074,15 @@
|
|
|
|
WHERE
|
|
|
|
WHERE
|
|
|
|
t.channel = 'Settlement'
|
|
|
|
t.channel = 'Settlement'
|
|
|
|
]]>
|
|
|
|
]]>
|
|
|
|
|
|
|
|
<if test="client_ids!=null">
|
|
|
|
AND t.client_id IN
|
|
|
|
AND t.client_id IN
|
|
|
|
<foreach collection="client_ids" open="(" close=")" separator="," item="clientId">
|
|
|
|
<foreach collection="client_ids" open="(" close=")" separator="," item="clientId">
|
|
|
|
#{clientId}
|
|
|
|
#{clientId}
|
|
|
|
</foreach>
|
|
|
|
</foreach>
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="client_ids==null">
|
|
|
|
|
|
|
|
and t.client_id=#{client_id}
|
|
|
|
|
|
|
|
</if>
|
|
|
|
<if test="from!=null">and t.transaction_time >= #{from}</if>
|
|
|
|
<if test="from!=null">and t.transaction_time >= #{from}</if>
|
|
|
|
<if test="to!=null">and t.transaction_time < #{to}</if>
|
|
|
|
<if test="to!=null">and t.transaction_time < #{to}</if>
|
|
|
|
GROUP BY
|
|
|
|
GROUP BY
|
|
|
|