35 lines
1.7 KiB
MySQL
Raw Normal View History

2025-03-07 16:23:56 +08:00
-- 刷还款日
create table fac_loan_duebill_20220426_tmp select * from fac_loan_duebill where duebill_no in (select loan_id from rec_bdfile_loan_his where data_date = '2022-04-24');
create table pay_credit_app_20220426_tmp select * from pay_credit_app where duebill_no in (select loan_id from rec_bdfile_loan_his where data_date = '2022-04-24');
create table ctr_loan_cont_20220426_tmp select * from ctr_loan_cont where ctr_loan_cont.Cont_No in (select pay_credit_app_20220426_tmp.Cont_No from pay_credit_app_20220426_tmp);
-- 刷合同编号
create table fac_loan_repay_plan_20220426_tmp select id from fac_loan_repay_plan where cont_no = 'NWLSLC20220424616334375021318144';
create table fac_loan_duebill_20220426_tmp1 select id from fac_loan_duebill where cont_no = 'NWLSLC20220424616334375021318144';
create table fac_loan_duebill_20220426_tmp2 select id from fac_loan_duebill where cont_no = 'NWLSLC20220425616644579998830592';
create table pay_payout_app_20220426_tmp1 select id from pay_payout_app where cont_no = 'NWLSLC20220424616334375021318144';
create table pay_payout_app_20220426_tmp2 select id from pay_payout_app where cont_no = 'NWLSLC20220425616644579998830592';
create table biz_cus_acct_20220426_tmp1 select id from biz_cus_acct where cont_no = 'NWLSLC20220424616334375021318144';
create table biz_cus_acct_20220426_tmp2 select id from biz_cus_acct where cont_no = 'NWLSLC20220425616644579998830592';
-- 刷利率方式
create table pay_credit_app_20220426_tmp3 select * from pay_credit_app where prd_code = 'RXX110001';
create table ctr_loan_cont_20220426_tmp3 select * from ctr_loan_cont where prd_code = 'RXX110001';
create table fac_loan_duebill_20220426_tmp3 select * from fac_loan_duebill where prd_code = 'RXX110001';