Commit 963da113 authored by 董建华's avatar 董建华

新增数据

parent d084ea9e
......@@ -65,7 +65,7 @@ and a.loan_paid_at <@t2;
select a.*,b.loan_paid_at,b.contract_loan_amount from xyqb_i_repayment_plan a
left join xyqb_i_loan_application_manifest_history b
on a.loan_application_history_id=b.loan_application_history_id
where b.funding_corp_id=710 and b.transaction_status in (2,5) and a.repayment_status=3
where b.funding_corp_id in (480,710,630,790,820) and b.transaction_status in (2,5) and a.repayment_status=3
and a.repaid_at >=@t1
and a.repaid_at <@t2
) a
......@@ -121,7 +121,7 @@ and a.loan_paid_at <@t2;
select a.*,b.loan_paid_at,b.contract_loan_amount from xyqb_i_repayment_plan a
left join xyqb_i_loan_application_manifest_history b
on a.loan_application_history_id=b.loan_application_history_id
where b.funding_corp_id=710 and b.transaction_status in (2,5) and
where b.funding_corp_id in (480,710,630,790,820) and b.transaction_status in (2,5) and
((a.repayment_status!=3 or (a.repayment_status=3 and a.repaid_at>=@t2)))
and a.deadline>@t1
and a.deadline <=@t2
......
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