1.单个字符要用''.toString()
<if test="type != '2'.toString()">
2.用双引号“”,当然text的引号要改为单引号‘’
<if test='type != "1" '>