说下我的错误
属性 status 为 int 值 对于状态为 (status = 0 和 status ="")是等值的
错误使用:
<if test="status != null and status != " ">status = #{status}</if>
<if test="status == null or status =='' ">and status != 10</if>
正确使用: 对于基本类型
<if test="status != null"> and status = #{status}</if>
<if test="status == null">and status != 10</if>
下午再详细写================ 敬请期待