mybatis if test非空判断数字0为什么是false
更新:HHH   时间:2023-1-7


1、去掉空字符串判断

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

2、添加0值判断

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


返回MySQL数据库教程...