浏览代码

新增 签名

Administrator 1 年之前
父节点
当前提交
ceebcb8821
共有 1 个文件被更改,包括 5 次插入5 次删除
  1. 5 5
      ruoyi-system/src/main/resources/mapper/system/LoanApplicationMapper.xml

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

@@ -131,7 +131,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="loanApplicationType != null  and loanApplicationType != ''"> and loan_application_type = #{loanApplicationType}</if>
             <if test="userId != null "> and (a_user_id = #{userId} or (b_user_id = #{userId} and audit_schedule = '3') or  user_id = #{userId})</if>
             <if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
-                AND date_format(create_time,'%Y') = date_format(#{params.beginTime},'%Y')
+                AND date_format(create_time,'%Y') = #{params.beginTime}
             </if>
         </where>
         order by create_time DESC
@@ -140,11 +140,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
     <select id="selectLoanApplicationListStatistics" parameterType="LoanApplication" resultMap="LoanApplicationResult">
         <include refid="selectLoanApplicationVo"/>
         <where>
-            <if test="type != null and type == '1'"><!-- 开始时间检索 -->
-                AND date_format(application_time,'%Y') = date_format(#{params.beginTime},'%Y')
+            <if test="type != null and type == '1'.toString()"><!-- 开始时间检索 -->
+                AND date_format(application_time,'%Y') = #{params.beginTime}
             </if>
-            <if test="type != null and type == '2'"><!-- 开始时间检索 -->
-                AND date_format(application_time,'%Y%m') = date_format(#{params.beginTime},'%Y%m')
+            <if test="type != null and type == '2'.toString()"><!-- 开始时间检索 -->
+                AND date_format(application_time,'%Y%m') = #{params.beginTime}
             </if>
         </where>
     </select>