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>字符串

相關文章
相關標籤/搜索