mybatis源码中,会把 0 和 空字符串都转成 0.00,反正如果前端传入的时字符型数字,最好都把数字都加上toString()方法
<if test="isWrite != null and '0'.toString() == isWrite ">
AND AAE.CODE IS NULL
</if>
<if test="isWrite != null and '1'.toString() == isWrite ">
AND AAE.CODE IS NOT NULL
</if>```