2018年6月1日

摘录-Mybatis - Integer值为0的数据 return false

摘要: Mybatis在进行<if test="status != null and status != ''">判空操作时,如果status为0的时候,该判断条件的值为false,也就是说Mybatis此时把0作为 ""来进行判断的! status 若为对象数据类型(例integer)就去掉为""判断 若 阅读全文

posted @ 2018-06-01 14:04 yhtomail 阅读(433) 评论(0) 推荐(0) 编辑

导航