diff --git a/anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanrestorereportapply/LoanRestoreReportApplyMapper.xml b/anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanrestorereportapply/LoanRestoreReportApplyMapper.xml index 9f80933fec..5f73e65f4b 100644 --- a/anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanrestorereportapply/LoanRestoreReportApplyMapper.xml +++ b/anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanrestorereportapply/LoanRestoreReportApplyMapper.xml @@ -36,22 +36,22 @@ @@ -78,28 +78,33 @@ SELECT - SUM(fund) + IFNULL(SUM(fund),0) FROM loan_fund_day WHERE busSid IN @@ -146,12 +153,14 @@ SELECT ROUND( ( - SUM(ss.yq_total) + + IFNULL(SUM(ss.yq_total), 0) + IFNULL( (SELECT SUM(lbpv.`bankBeInter`) FROM loan_be_padsincere_veh lbpv - WHERE lbpv.saleVehSid = ss.busVinSid) + + WHERE lbpv.saleVehSid = ss.busVinSid), + 0 + ) + IFNULL( (SELECT SUM(fund) FROM @@ -162,7 +171,9 @@ FROM loan_repayment_plan_details lrpd WHERE DATE_FORMAT(lrpd.dueDate, '%Y-%m-%d') < CURDATE() - AND lrpd.`busVinSid` = #{saleVehSid})) + AND lrpd.`busVinSid` = #{saleVehSid})), + 0 + ) ) / ss.mainMidRepay, 1 ) AS yqjehsqs