Commit 0899bd6f by 潘诗林

宁波财资接入优加:二手车付款列表查询优化

1 parent b97ca536
...@@ -126,7 +126,7 @@ ...@@ -126,7 +126,7 @@
from nb_cb_batch_transfer cbt from nb_cb_batch_transfer cbt
left join nb_cb_batch_transfer_detail cbtd on cbt.id = cbtd.batch_transfer_id and cbtd.deleted_flag = 'N' left join nb_cb_batch_transfer_detail cbtd on cbt.id = cbtd.batch_transfer_id and cbtd.deleted_flag = 'N'
left join oa_apply_batch_transfer oa on oa.merchant_sp_no = cbt.dj_serial_no and oa.deleted_flag = 'N' and oa.wechat_type = 1 left join oa_apply_batch_transfer oa on oa.merchant_sp_no = cbt.dj_serial_no and oa.deleted_flag = 'N'
left join nb_cb_acc_detail ncad on ncad.serial_no = cbtd.acc_detail_serial_no and ncad.deleted_flag = 'N' and ncad.cd_sign = 1 left join nb_cb_acc_detail ncad on ncad.serial_no = cbtd.acc_detail_serial_no and ncad.deleted_flag = 'N' and ncad.cd_sign = 1
left join nb_cb_receipt ncr on ncad.sub_serial_no = ncr.sub_serial_no and ncad.match_code = ncr.match_code and ncr.deleted_flag = 'N' left join nb_cb_receipt ncr on ncad.sub_serial_no = ncr.sub_serial_no and ncad.match_code = ncr.match_code and ncr.deleted_flag = 'N'
left join nb_cb_cust_info ncci on ncci.cust_id = cbt.cust_id and ncci.deleted_flag = 'N' left join nb_cb_cust_info ncci on ncci.cust_id = cbt.cust_id and ncci.deleted_flag = 'N'
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!