MYBATIS中if test判断中的注意事项

mybatis中有这样一个SQL判断,web <if test="status != null and status !='' "> and a.STATUS = #{status,jdbcType=SMALLINT} </if> status是一个Byte类型对象,当status = 1时判断成立,status=0 就不成立,按理说都应该成立的。本身试着把status !=’’ 去掉以后就都成立
相关文章
相关标签/搜索