Antiloveg пре 8 година
родитељ
комит
24ccb06b67
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

@@ -248,7 +248,7 @@
 		and u.number = #{number,jdbcType=INTEGER}
 	</if>
 	<if test="username != null">
-		and i.username like '%'#{username,jdbcType=VARCHAR}'%'   
+		and i.username like CONCAT ('%',#{username,jdbcType=VARCHAR},'%')   
 	</if>
 	<if test="auditStatus != null">
 		and i.audit_status= #{auditStatus,jdbcType=INTEGER}
@@ -280,7 +280,7 @@
 		and u.number = #{number,jdbcType=INTEGER}
 	</if>
 	<if test="username != null">
-		and i.username like '%'#{username,jdbcType=VARCHAR}'%'   
+		and i.username like CONCAT ('%',#{username,jdbcType=VARCHAR},'%') 
 	</if>
 	<if test="auditStatus != null">
 		and i.audit_status= #{auditStatus,jdbcType=INTEGER}
@@ -581,7 +581,7 @@
 		and u.number = #{number,jdbcType=INTEGER}
 	</if>
 	<if test="username != null">
-		and i.username like '%'#{username,jdbcType=VARCHAR}'%'   
+		and i.username like CONCAT('%',#{username,jdbcType=VARCHAR},'%')   
 	</if>
 	<if test="auditStatus != null">
 		and i.audit_status= #{auditStatus,jdbcType=INTEGER}
@@ -627,7 +627,7 @@
 		and u.number = #{number,jdbcType=INTEGER}
 	</if>
 	<if test="username != null">
-		and i.username like '%'#{username,jdbcType=VARCHAR}'%'   
+		and i.username like CONCAT('%',#{username,jdbcType=VARCHAR},'%')   
 	</if>
 	<if test="auditStatus != null">
 		and i.audit_status= #{auditStatus,jdbcType=INTEGER}