Antiloveg лет назад: 8
Родитель
Сommit
fa535dd997
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      src/main/java/com/goafanti/common/mapper/UserMapper.xml

+ 4 - 4
src/main/java/com/goafanti/common/mapper/UserMapper.xml

@@ -388,7 +388,7 @@
     	and i.audit_status = #{auditStatus,jdbcType=INTEGER}
     	and i.audit_status = #{auditStatus,jdbcType=INTEGER}
     </if>
     </if>
      <if test="auditName !=null">
      <if test="auditName !=null">
-    	and i.username like '%'#{auditName,jdbcType=VARCHAR}'%'
+    	and i.username like CONCAT('%',#{auditName,jdbcType=VARCHAR},'%')
     </if>
     </if>
     <if test="email !=null">
     <if test="email !=null">
     	and u.email = #{email,jdbcType=VARCHAR}
     	and u.email = #{email,jdbcType=VARCHAR}
@@ -425,7 +425,7 @@
     	and i.audit_status = #{auditStatus,jdbcType=INTEGER}
     	and i.audit_status = #{auditStatus,jdbcType=INTEGER}
     </if>
     </if>
     <if test="auditName !=null">
     <if test="auditName !=null">
-    	and i.username like '%'#{auditName,jdbcType=VARCHAR}'%'
+    	and i.username like CONCAT('%',#{auditName,jdbcType=VARCHAR},'%')
     </if>
     </if>
     <if test="email !=null">
     <if test="email !=null">
     	and u.email = #{email,jdbcType=VARCHAR}
     	and u.email = #{email,jdbcType=VARCHAR}
@@ -468,7 +468,7 @@
     	and i.audit_status = #{auditStatus,jdbcType=INTEGER}
     	and i.audit_status = #{auditStatus,jdbcType=INTEGER}
     </if>
     </if>
      <if test="auditName !=null">
      <if test="auditName !=null">
-    	and i.username like '%'#{auditName,jdbcType=VARCHAR}'%'
+    	and i.unit_name like CONCAT('%',#{auditName,jdbcType=VARCHAR},'%')
     </if>
     </if>
     <if test="email !=null">
     <if test="email !=null">
     	and u.email = #{email,jdbcType=VARCHAR}
     	and u.email = #{email,jdbcType=VARCHAR}
@@ -505,7 +505,7 @@
     	and i.audit_status = #{auditStatus,jdbcType=INTEGER}
     	and i.audit_status = #{auditStatus,jdbcType=INTEGER}
     </if>
     </if>
     <if test="auditName !=null">
     <if test="auditName !=null">
-    	and i.unit_name like '%'#{auditName,jdbcType=VARCHAR}'%'
+    	and i.unit_name like CONCAT('%',#{auditName,jdbcType=VARCHAR},'%')
     </if>
     </if>
     <if test="email !=null">
     <if test="email !=null">
     	and u.email = #{email,jdbcType=VARCHAR}
     	and u.email = #{email,jdbcType=VARCHAR}