|
@@ -25,11 +25,11 @@
|
|
|
</if>
|
|
|
</if>
|
|
|
<if test="startDate != null and startDate != ''">
|
|
|
- AND (DATE_FORMAT(r.repayment_date,"%Y%m%d") >=
|
|
|
+ AND (DATE_FORMAT(o.create_date,"%Y%m%d") >=
|
|
|
DATE_FORMAT(#{startDate},"%Y%m%d"))
|
|
|
</if>
|
|
|
<if test="endDate != null and endDate != ''">
|
|
|
- AND (DATE_FORMAT(r.repayment_date,"%Y%m%d") <=
|
|
|
+ AND (DATE_FORMAT(o.create_date,"%Y%m%d") <=
|
|
|
DATE_FORMAT(#{endDate},"%Y%m%d"))
|
|
|
</if>
|
|
|
</select>
|
|
@@ -74,14 +74,14 @@
|
|
|
</if>
|
|
|
</if>
|
|
|
<if test="startDate != null and startDate != ''">
|
|
|
- AND (DATE_FORMAT(r.repayment_date,"%Y%m%d") >=
|
|
|
+ AND (DATE_FORMAT(o.create_date,"%Y%m%d") >=
|
|
|
DATE_FORMAT(#{startDate},"%Y%m%d"))
|
|
|
</if>
|
|
|
<if test="endDate != null and endDate != ''">
|
|
|
- AND (DATE_FORMAT(r.repayment_date,"%Y%m%d") <=
|
|
|
+ AND (DATE_FORMAT(o.create_date,"%Y%m%d") <=
|
|
|
DATE_FORMAT(#{endDate},"%Y%m%d"))
|
|
|
</if>
|
|
|
- ORDER BY r.status_key ASC,r.repayment_date DESC
|
|
|
+ ORDER BY r.status_key ASC,r.create_date DESC
|
|
|
<if test="currentPage != null and currentPage != ''">
|
|
|
LIMIT ${startRecord}, ${pageSize}
|
|
|
</if>
|