Commit 53021e0f authored by zhen.ma's avatar zhen.ma

rt

parent f1fe70ee
This diff is collapsed.
......@@ -17,6 +17,7 @@ pd.set_option('display.float_format', lambda x: '%.5f' % x)
mysql = sql_engine('audit', 'audit', False).get_engine()
mysql_analysis = sql_engine('analysis', 'analysis_tmp', False).get_engine()
# todo: is_active = -2 的订单,按哪个时间来关联风险金比例
sql_loan = """
SELECT
bo.order_no 产品编号,
......@@ -55,7 +56,7 @@ sql_ref = """SELECT
rra1006.repay_channel_flow_id 流水号,
rc.approach_name 还款账户
FROM new_transaction.baitiao_repay_plan_repay_record_ref brprrr
JOIN test_mzh.repay_record_amount_1006 rra1006
JOIN test_mzh.repay_record_amount rra1006
ON rra1006.record_id = brprrr.record_id AND rra1006.repay_channel = brprrr.repay_channel
JOIN new_transaction.user_bt_repayment_plan ubrp ON ubrp.id = brprrr.plan_id
JOIN baitiao_audit.baitiao_order bo ON bo.ref_id = ubrp.ref_id AND bo.funding_corp_id = 5
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment