Administrator 1 жил өмнө
parent
commit
9e1cf648e9

+ 3 - 2
ruoyi-system/src/main/resources/mapper/system/LoanApplicationMapper.xml

@@ -124,7 +124,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="guaranteeSpousePhone != null  and guaranteeSpousePhone != ''"> and guarantee_spouse_phone = #{guaranteeSpousePhone}</if>
             <if test="userId != null "> and user_id = #{userId}</if>
             <if test="idCard != null  and idCard != ''"> and id_card = #{idCard}</if>
-            <if test="applicationTime != null "> and application_time = #{applicationTime}</if>
+            <if test="applicationTime != null ">AND date_format(application_time,'%Y%m%d') &gt;= date_format(#{applicationTime},'%Y%m%d')</if>
             <if test="fileTime != null "> and file_time = #{fileTime}</if>
             <if test="loanSchedule != null  and loanSchedule != ''"> and loan_schedule = #{loanSchedule}</if>
             <if test="auditSchedule != null  and auditSchedule != ''"> and audit_schedule = #{auditSchedule}</if>
@@ -134,8 +134,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="aUserName != null "> and a_user_name like concat('%', #{aUserName}, '%')</if>
             <if test="bUserId != null "> and b_user_id = #{bUserId}</if>
             <if test="bUserName != null "> and b_user_name like concat('%', #{bUserName}, '%')</if>
+            <if test="creatTime != null ">AND date_format(create_time,'%Y') = date_format(#{createTime},'%Y')</if>
         </where>
-        order by create_time
+        order by application_time
     </select>
     
     <select id="selectLoanApplicationByLoanApplicationId" parameterType="Long" resultMap="LoanApplicationResult">