原始代码:
<if test="criteria.errorType != null and criteria.errorType == '1'">
and x.result !=0
</if>
发现筛选不起作用
修改代码:<if test="criteria.errorType != null and criteria.errorType == '1'.toString()">
and x.result !=0
</if>
或者
<if test="criteria.errorType != null and criteria.errorType == 1">
and x.result !=0
</if>
然后就ok了