我试了以下两种不起作用,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
</if>
来源:CSDN
作者:IT学为
链接:https://blog.csdn.net/zhangxue_wei/article/details/103857833