Commit cc7ac83e authored by 郝彦辉's avatar 郝彦辉

放款报送SQL优化

parent f2a72de9
...@@ -340,12 +340,14 @@ ...@@ -340,12 +340,14 @@
left join business_flow_i_apply_list i on d.order_no=i.apply_no left join business_flow_i_apply_list i on d.order_no=i.apply_no
left join xyqb_i_waiting_funding_corp_operate_people j on a.loan_application_history_id=j.loan_application_history_id left join xyqb_i_waiting_funding_corp_operate_people j on a.loan_application_history_id=j.loan_application_history_id
where a.funding_corp_id in (420,520,580,650,670,810,240,640,700) and where
e.term_no=a.contract_term and g.term_no=1 a.loan_paid_at>= #{startTime,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)
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)
and a.loan_paid_at>= #{startTime,jdbcType=VARCHAR} ;
and a.loan_paid_at < #{endTime,jdbcType=VARCHAR};
<!--p2p 2019.12.13--> <!--p2p 2019.12.13-->
<!--select a.loan_application_history_id reqID <!--select a.loan_application_history_id reqID
...@@ -441,12 +443,14 @@ ...@@ -441,12 +443,14 @@
left join business_flow_i_apply_list i on d.order_no=i.apply_no left join business_flow_i_apply_list i on d.order_no=i.apply_no
left join xyqb_i_waiting_funding_corp_operate_people j on a.loan_application_history_id=j.loan_application_history_id left join xyqb_i_waiting_funding_corp_operate_people j on a.loan_application_history_id=j.loan_application_history_id
where a.funding_corp_id in (880,890) and where
e.term_no=a.contract_term and g.term_no=1 a.loan_paid_at>= #{startTime,jdbcType=VARCHAR}
and a.loan_paid_at &lt; #{endTime,jdbcType=VARCHAR}
and a.funding_corp_id in (880,890)
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)
and a.loan_paid_at>= #{startTime,jdbcType=VARCHAR} ;
and a.loan_paid_at &lt; #{endTime,jdbcType=VARCHAR};
</select> </select>
......
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