两种方式:
<if test = 'sex== "Y"'>
<if test="sex=='Y'.toString()">
不能使用:
<if test="sex=='Y'"> and 1=1 </if>
会报错:例如for input string
两种方式:
<if test = 'sex== "Y"'>
<if test="sex=='Y'.toString()">
不能使用:
<if test="sex=='Y'"> and 1=1 </if>
会报错:例如for input string