|
@@ -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="guaranteeSpousePhone != null and guaranteeSpousePhone != ''"> and guarantee_spouse_phone = #{guaranteeSpousePhone}</if>
|
|
<if test="userId != null "> and user_id = #{userId}</if>
|
|
<if test="userId != null "> and user_id = #{userId}</if>
|
|
<if test="idCard != null and idCard != ''"> and id_card = #{idCard}</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') >= date_format(#{applicationTime},'%Y%m%d')</if>
|
|
<if test="fileTime != null "> and file_time = #{fileTime}</if>
|
|
<if test="fileTime != null "> and file_time = #{fileTime}</if>
|
|
<if test="loanSchedule != null and loanSchedule != ''"> and loan_schedule = #{loanSchedule}</if>
|
|
<if test="loanSchedule != null and loanSchedule != ''"> and loan_schedule = #{loanSchedule}</if>
|
|
<if test="auditSchedule != null and auditSchedule != ''"> and audit_schedule = #{auditSchedule}</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="aUserName != null "> and a_user_name like concat('%', #{aUserName}, '%')</if>
|
|
<if test="bUserId != null "> and b_user_id = #{bUserId}</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="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>
|
|
</where>
|
|
- order by create_time
|
|
|
|
|
|
+ order by application_time
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="selectLoanApplicationByLoanApplicationId" parameterType="Long" resultMap="LoanApplicationResult">
|
|
<select id="selectLoanApplicationByLoanApplicationId" parameterType="Long" resultMap="LoanApplicationResult">
|