Mybatis的if test字符串比较问题

1. Mybatis判断字符串是否为空的变态写法

    <if test="bussSceneIsNull =='0'.toString() ">

       <![CDATA[ and (t4.BUSS_SCENE = null or t4.BUSS_SCENE = '')]]>

    </if>

2. 第二种变态写法

    <if test='bussSceneIsNull == "" '>

       <![CDATA[ and (t4.BUSS_SCENE = null or t4.BUSS_SCENE = '')]]>

    </if>
原文地址:https://www.cnblogs.com/yeahwell/p/5211880.html