我试了以下两种不起作用,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>
或
<if test="isQuit != null and isQuit"> AND stage = 7 </if>
<if test="isQuit != null and !isQuit"> AND stage = 7 </if>