浏览代码

SQL修改

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

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

@@ -262,7 +262,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         from sys_user_conference s
         from sys_user_conference s
         LEFT JOIN loan_application l on l.loan_application_id = s.loan_application_id
         LEFT JOIN loan_application l on l.loan_application_id = s.loan_application_id
         where  l.loan_application_id is not null
         where  l.loan_application_id is not null
-        <if test="userId != null "> and s.user_id = #{userId} = #{userId}</if>
+        <if test="userId != null "> and s.user_id = #{userId}</if>
         <if test="enterpriseName != null  and enterpriseName != ''"> and l.enterprise_name like concat('%', #{enterpriseName}, '%')</if>
         <if test="enterpriseName != null  and enterpriseName != ''"> and l.enterprise_name like concat('%', #{enterpriseName}, '%')</if>
         <if test="applicationAmount != null "> and l.application_amount = #{applicationAmount}</if>
         <if test="applicationAmount != null "> and l.application_amount = #{applicationAmount}</if>
         <if test="reviewTime != null "> and l.review_time = #{reviewTime}</if>
         <if test="reviewTime != null "> and l.review_time = #{reviewTime}</if>