Commit f5d84e1a authored by 郑建's avatar 郑建

暂时不搞实时报送兰银和平银

parent c07f4510
...@@ -343,7 +343,7 @@ ...@@ -343,7 +343,7 @@
where where
a.loan_paid_at>= #{startTime,jdbcType=VARCHAR} a.loan_paid_at>= #{startTime,jdbcType=VARCHAR}
and a.loan_paid_at < #{endTime,jdbcType=VARCHAR} and a.loan_paid_at < #{endTime,jdbcType=VARCHAR}
and a.funding_corp_id in (420,520,580,650,670,810,240,640,700,1080,100040,1030,100030) and a.funding_corp_id in (420,520,580,650,670,810,240,640,700)
and e.term_no=a.contract_term and g.term_no=1 and e.term_no=a.contract_term and g.term_no=1
and a.contract_term not in (2,3) and a.contract_term not in (2,3)
and a.transaction_status in (2,5) and a.transaction_status in (2,5)
......
...@@ -483,7 +483,7 @@ ...@@ -483,7 +483,7 @@
where (a.repayment_status !=3 or (a.repayment_status =3 and a.repaid_at>= #{endTime,jdbcType=VARCHAR})) and where (a.repayment_status !=3 or (a.repayment_status =3 and a.repaid_at>= #{endTime,jdbcType=VARCHAR})) and
if(b.contract_term>a.term_no,DATEDIFF( #{endTime,jdbcType=VARCHAR},a.deadline)=0,DATEDIFF( #{endTime,jdbcType=VARCHAR},a.deadline)>=0) if(b.contract_term>a.term_no,DATEDIFF( #{endTime,jdbcType=VARCHAR},a.deadline)=0,DATEDIFF( #{endTime,jdbcType=VARCHAR},a.deadline)>=0)
and floor(DATEDIFF( #{endTime,jdbcType=VARCHAR},a.deadline)/30)=DATEDIFF( #{endTime,jdbcType=VARCHAR},a.deadline)/30 and floor(DATEDIFF( #{endTime,jdbcType=VARCHAR},a.deadline)/30)=DATEDIFF( #{endTime,jdbcType=VARCHAR},a.deadline)/30
and b.funding_corp_id in (420,520,580,650,670,810,240,640,700,1080,100040,1030,100030) and b.funding_corp_id in (420,520,580,650,670,810,240,640,700)
and b.transaction_status in (2,5) and b.transaction_status in (2,5)
and b.contract_term not in (2,3) and b.contract_term not in (2,3)
) a ) a
...@@ -499,7 +499,7 @@ ...@@ -499,7 +499,7 @@
left join xyqb.loan_application_manifest_history b on a.loan_application_history_id=b.loan_application_history_id left join xyqb.loan_application_manifest_history b on a.loan_application_history_id=b.loan_application_history_id
left join xyqb.repayment_record g on a.id=g.repayment_plan_id left join xyqb.repayment_record g on a.id=g.repayment_plan_id
left join xyqb.plan_amount_detail h on a.id=h.plan_id left join xyqb.plan_amount_detail h on a.id=h.plan_id
where b.funding_corp_id in (420,520,580,650,670,810,240,640,700,1080,100040,1030,100030) where b.funding_corp_id in (420,520,580,650,670,810,240,640,700)
group by a.loan_application_history_id group by a.loan_application_history_id
) f on a.loan_application_history_id=f.loan_application_history_id ) f on a.loan_application_history_id=f.loan_application_history_id
left join xyqb.repayment_record g on a.id=g.repayment_plan_id; left join xyqb.repayment_record g on a.id=g.repayment_plan_id;
......
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