作者 shenhailong

用户查询添加 模糊搜索

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