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

一、去掉空字符串判断ide

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

二、添加0值判断orm

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

相关文章
相关标签/搜索