原始代碼:
<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了