<if test="'0'==levelCode"> </if> 这样会报错NumberFormatException 如果换成 <if test="'0'.toString()==levelCode"> </if> 就ok了