29 lines
1.9 KiB
MySQL
29 lines
1.9 KiB
MySQL
|
-- 刷还款日
|
||
|
select if(count(1)=0,'true','false') '是否执行成功' from fac_loan_duebill as a right join rec_bdfile_loan_his as b on a.duebill_no = b.loan_id where a.rpy_day <> b.repay_day;
|
||
|
select if(count(1)=0,'true','false') '是否执行成功' from pay_credit_app as a right join rec_bdfile_loan_his as b on a.duebill_no = b.loan_id where a.rpy_day <> b.repay_day;
|
||
|
select if(count(1)=0,'true','false') '是否执行成功' from ctr_loan_cont as a right join pay_credit_app as b on a.cont_no = b.cont_no where a.rpy_day <> b.rpy_day and b.prd_code = 'RXX110001';
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
-- 刷合同编号
|
||
|
select if(count(1)=0,'true','false') '是否执行成功' from fac_loan_repay_plan where cont_no = 'NWLSLC20220424616334375021318144';
|
||
|
|
||
|
select if(count(1)=0,'true','false') '是否执行成功' from fac_loan_duebill where cont_no = 'NWLSLC20220424616334375021318144';
|
||
|
|
||
|
select if(count(1)=0,'true','false') '是否执行成功' from fac_loan_duebill where cont_no = 'NWLSLC20220425616644579998830592';
|
||
|
|
||
|
select if(count(1)=0,'true','false') '是否执行成功' from pay_payout_app where cont_no = 'NWLSLC20220424616334375021318144';
|
||
|
|
||
|
select if(count(1)=0,'true','false') '是否执行成功' from pay_payout_app where cont_no = 'NWLSLC20220425616644579998830592';
|
||
|
|
||
|
select if(count(1)=0,'true','false') '是否执行成功' from biz_cus_acct where cont_no = 'NWLSLC20220424616334375021318144';
|
||
|
|
||
|
select if(count(1)=0,'true','false') '是否执行成功' from biz_cus_acct where cont_no = 'NWLSLC20220425616644579998830592';
|
||
|
|
||
|
|
||
|
|
||
|
-- 刷利率方式
|
||
|
select if(count(1)=0,'true','false') '是否执行成功' from pay_credit_app where rate_type <> '0' and prd_code = 'RXX110001';
|
||
|
select if(count(1)=0,'true','false') '是否执行成功' from ctr_loan_cont where rate_type <> '0' and prd_code = 'RXX110001';
|
||
|
select if(count(1)=0,'true','false') '是否执行成功' from fac_loan_duebill where rate_type <> '0' and prd_code = 'RXX110001';
|