<if test='patrolResult != null and patrolResult != "" and patrolResult !="1"'>AND PATROL_RESULT = #{patrolResult}</if> <if test='patrolResult == "1"'>AND PATROL_RESULT IS NULL</if>
<if test='patrolResult != null and patrolResult != "" and patrolResult !="1"'>AND PATROL_RESULT = #{patrolResult}</if> <if test='patrolResult == "1"'>AND PATROL_RESULT IS NULL</if>