1、去掉空字符串判断

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

2、添加0值判断

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