原文链接: https://blog.csdn.net/az44yao/article/details/123188910
我试了以下两种不起作用,true和false效果一样的
-
<if test="isQuit != null and isQuit == true">
-
AND stage = 7
-
</if>
-
和
-
<if test="isQuit">
-
AND stage = 7
-
</if>
最后试了这种成功了
-
<if test="isQuit != null and 'true'.toString() == isQuit.toString()">
-
AND stage = 7
-