Mybatis中的if test 标签

<if test='patrolResult != null and patrolResult != "" and patrolResult !="1"'>AND PATROL_RESULT = #{patrolResult}</if>       
<if test='patrolResult == "1"'>AND PATROL_RESULT IS NULL</if> 
原文地址:https://www.cnblogs.com/lxcmyf/p/6011974.html