|
|
@ -333,7 +333,7 @@ FROM ( |
|
|
|
loan_repayment_plan_details AS p |
|
|
|
LEFT JOIN anrui_fin.fin_uncollected_receivables_detailed_jr as jr ON p.sid = jr.busSid |
|
|
|
LEFT JOIN anrui_fin.fin_selected_receivables_detailed as s ON jr.sid = s.receivablesSid |
|
|
|
WHERE p.busVinSid = #{busVinSid} AND s.auditState = '3' AND s.createTime > #{formatDate} and s.receivablesName != '资方退还垫款' |
|
|
|
WHERE p.busVinSid = #{busVinSid} AND s.auditState = '3' AND s.createTime > #{formatDate} and s.receivablesName != '资方退还垫款' and s.remarks != '结清减免' |
|
|
|
</select> |
|
|
|
<select id="selDueMoneyByBusVinSidAndCloseDate" resultType="java.lang.String"> |
|
|
|
SELECT |
|
|
@ -341,7 +341,7 @@ FROM ( |
|
|
|
FROM |
|
|
|
loan_repayment_plan_details AS p |
|
|
|
LEFT JOIN loan_repayment_history as h ON p.sid = h.planDetailSid |
|
|
|
WHERE p.busVinSid = #{busVinSid} AND h.updateState = '1' AND h.dataTime > #{formatDate} |
|
|
|
WHERE p.busVinSid = #{busVinSid} AND h.updateState = '1' AND h.dataTime > #{formatDate} AND h.returnWay != '结清减免' |
|
|
|
</select> |
|
|
|
<select id="selectPlanListByBusVinSid" |
|
|
|
resultType="com.yxt.anrui.riskcenter.api.loanrepaymentplandetails.LoanRepaymentPlanDetails"> |
|
|
|