mybatis if判断int类型的查询条件如何判断空和空字符串

 <if test="null!=state and  state!=''"> state=#{state}  </if> spa 这样state是int类型的数据。这里经过Map传递过来。在这里判断state是不是null和空字符串,当state传过来是0时这个判断是进不了的。字符串  <if test="null!=state and  state!='' or state==0"> stat
相关文章
相关标签/搜索