单字符判断
要用双引号或者toString()
<if test="code != null and code=='1'.toString()" >
<if test='code != null and code=="1"' >
不然会被转换为char字符。
要用双引号或者toString()
<if test="code != null and code=='1'.toString()" >
<if test='code != null and code=="1"' >
不然会被转换为char字符。