在我自定义的sql中 ,有这样 两个 <if test>,其中isPartiCated 为Integer型,值为0
<if test="isPartiCated != null and isPartiCated != '' ">
and su.isPartiCated = #{isPartiCated}
</if>
<if test="isPartiCated == null or isPartiCated == '' ">
and su.isPartiCated is null
</if>
为何一直进入的是第二个if,也就是<if test="isPartiCated == null or isPartiCated == '' ">,
有人能解答下吗?或者告诉我怎么去查找<if test>的源码,我找不到。
在线等 。
小弟,先谢谢各位看官了!!!