作者 shenhailong

用户查询添加 模糊搜索

@@ -42,10 +42,10 @@ @@ -42,10 +42,10 @@
42 WHERE 1=1 42 WHERE 1=1
43 and del_flag= '0' 43 and del_flag= '0'
44 <if test=" loginName != null" > 44 <if test=" loginName != null" >
45 - and login_name = #{loginName,jdbcType=VARCHAR} 45 + and login_name like concat('%',#{loginName,jdbcType=VARCHAR},'%')
46 </if> 46 </if>
47 <if test="name != null" > 47 <if test="name != null" >
48 - and name = #{name,jdbcType=VARCHAR} 48 + and name like concat('%',#{name,jdbcType=VARCHAR},'%')
49 </if> 49 </if>
50 </select> 50 </select>
51 <select id="selectByUsername" resultMap="BaseResultMap" parameterType="java.lang.String" > 51 <select id="selectByUsername" resultMap="BaseResultMap" parameterType="java.lang.String" >