一:List<UserVo> list(@Param("nickName") String nickName);
<select id="list" resultMap="ResultMap" parameterType="java.lang.String">
select
<include refid="Base_Column_List" />
from t_user
where del_flag=1
<if test="nickName != null">
and nickname like '%'|| #{nickName,jdbcType=VARCHAR} ||'%'
</if>
</select>
二:List<UserVo> list(String nickName);
<if test="_parameter != null">
and nickname like '%'|| #{nickName,jdbcType=VARCHAR} ||'%'
</if>