myBatis-plus中对用Long或者Integer数据做判空时,不能使用==""的形式,否则会出现上述错误
<if test="anesthetist != null">
AND bs.ANESTHETIST = #{anesthetist, jdbcType=INTEGER }
</if>
不用判断==""即可;
还有如果对象的某个属性是整数类型,最好定义其为Long,Integer包装类型,不要使用long,int。因为long,int不传值时,默认为0,所以需要使用其包装类