|
|
|
@ -921,7 +921,7 @@
|
|
|
|
|
t.clearing_status,
|
|
|
|
|
t.settle_amount,
|
|
|
|
|
t.clearing_status = 2 pre_auth,
|
|
|
|
|
IF( t.remark like '%RYCBSM%',1,0) as geek_apply_deduction
|
|
|
|
|
IF( t.remark like '%RYCBSM%',TRUE,FALSE) as geek_apply_deduction
|
|
|
|
|
from pmt_orders o
|
|
|
|
|
left join pmt_transactions t on t.order_id=o.order_id and t.channel!='Settlement'
|
|
|
|
|
AND (t.system_generate = 0 or (t.system_generate = 1 and t.remark like '%RYCBSM%'))
|
|
|
|
|