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> 

 

posted @ 2016-10-29 22:07  如果屈原会编程  阅读(10082)  评论(0编辑  收藏  举报