sql mapper 里面 Integer 类型判断

<if test="isChoiceness != null and isChoiceness != -1">
AND sa.is_choiceness = #{isChoiceness}
</if>

isChoiceness 是一个Integer 类型的值,所以只能判断是否是null 和是否是 数字类型的值,不能判断为空字符串 isChoiceness != ''  
原文地址:https://www.cnblogs.com/SeaWxx/p/10936058.html