<> 和 !=
一般使用<>,不使用!=
xml中使用时需要这样写:
<select id="queryBySearch" resultType="java.util.HashMap" parameterType="Object">
select * form table where 1=1
<if test="condition.name != null">
and table.name<![CDATA[ <> ]]> ''
</if>
</select>