mybatis if test非空判断数字0为什么是false

2023-05-19,,

1、去掉空字符串判断

         <if test="version != null">xxxxx</if>

2、添加0值判断

         <if test="version != null and version != '' or version == 0">xxxxx</if>

《mybatis if test非空判断数字0为什么是false.doc》

下载本文的Word格式文档,以方便收藏与打印。