平常if test比较都是<if test="type == '1'">进行的,发现type是string类型时,无论如何也不会变成true,最后搜索,解决方法<if test='type == "1"'>