|
|
|
@ -1107,9 +1107,8 @@
|
|
|
|
|
pmt_transactions t
|
|
|
|
|
LEFT JOIN pmt_orders o ON o.order_id = t.order_id
|
|
|
|
|
LEFT JOIN pmt_refunds r ON r.refund_id = t.refund_id
|
|
|
|
|
LEFT JOIN log_clearing_detail_analysis a ON a.clearing_detail_id = t.clearing_order
|
|
|
|
|
LEFT JOIN log_clearing_detail_analysis a ON a.clearing_detail_id = t.clearing_order AND t.channel = a.channel
|
|
|
|
|
LEFT JOIN sys_clients c ON c.client_id = t.client_id
|
|
|
|
|
AND t.channel = a.channel
|
|
|
|
|
WHERE t.channel != 'Settlement'
|
|
|
|
|
]]>
|
|
|
|
|
<if test="clientOrders!=null">
|
|
|
|
|