|
|
@ -253,7 +253,7 @@ |
|
|
|
</select> |
|
|
|
<select id="repaymentStatistics" |
|
|
|
resultType="com.yxt.anrui.riskcenter.api.loanrepaymenthistory.RepaymentStatisticsVo"> |
|
|
|
SELECT DISTINCT |
|
|
|
SELECT |
|
|
|
a.*, |
|
|
|
(SELECT |
|
|
|
(fjj.reveivableMoney - fjj.m) |
|
|
@ -341,7 +341,7 @@ |
|
|
|
</select> |
|
|
|
<select id="repaymentDetailsList" |
|
|
|
resultType="com.yxt.anrui.riskcenter.api.loanrepaymenthistory.RepaymentDetailsListVo"> |
|
|
|
SELECT DISTINCT |
|
|
|
SELECT |
|
|
|
* |
|
|
|
FROM |
|
|
|
( |
|
|
@ -414,7 +414,7 @@ |
|
|
|
</select> |
|
|
|
<select id="repaymentStatisticsExport" |
|
|
|
resultType="com.yxt.anrui.riskcenter.api.loanrepaymenthistory.RepaymentStatisticsExportVo"> |
|
|
|
SELECT DISTINCT |
|
|
|
SELECT |
|
|
|
a.* |
|
|
|
FROM |
|
|
|
( |
|
|
@ -542,7 +542,7 @@ |
|
|
|
</select> |
|
|
|
<select id="selPlanDetailsByBank" |
|
|
|
resultType="com.yxt.anrui.riskcenter.api.loanrepaymenthistory.NoImportVo"> |
|
|
|
SELECT DISTINCT * |
|
|
|
SELECT * |
|
|
|
FROM ( |
|
|
|
SELECT p.sid, |
|
|
|
po.bankSid, |
|
|
@ -583,7 +583,7 @@ |
|
|
|
AND a.useOrgSid = #{useOrgSid} |
|
|
|
</select> |
|
|
|
<select id="selNotRuleForBuckSids" resultType="java.lang.String"> |
|
|
|
SELECT DISTINCT b.sid |
|
|
|
SELECT b.sid |
|
|
|
FROM ( |
|
|
|
SELECT his.*, |
|
|
|
a.* |
|
|
@ -618,7 +618,7 @@ |
|
|
|
LIMIT 1 |
|
|
|
</select> |
|
|
|
<select id="selSidsForBuckle" resultType="java.lang.String"> |
|
|
|
SELECT DISTINCT b.sid |
|
|
|
SELECT b.sid |
|
|
|
FROM ( |
|
|
|
SELECT his.*, |
|
|
|
a.* |
|
|
@ -643,7 +643,7 @@ |
|
|
|
</select> |
|
|
|
<select id="exportStatisticsExcel" |
|
|
|
resultType="com.yxt.anrui.riskcenter.api.loanrepaymenthistory.export.RecordCountVo"> |
|
|
|
SELECT DISTINCT |
|
|
|
SELECT |
|
|
|
a.*, |
|
|
|
(SELECT |
|
|
|
(fjj.reveivableMoney - fjj.m) |
|
|
@ -727,7 +727,7 @@ |
|
|
|
</select> |
|
|
|
<select id="exportDetailsExcel" |
|
|
|
resultType="com.yxt.anrui.riskcenter.api.loanrepaymenthistory.export.RepaymentDetailsExportVo"> |
|
|
|
SELECT DISTINCT |
|
|
|
SELECT |
|
|
|
@row_number := @row_number + 1 AS rankNo, |
|
|
|
a.* |
|
|
|
FROM |
|
|
|