mybatis 判断参数是否等于0

mybatis判断参数是否等于0写法:

  <if test="check != null and check  != '' "  and check =="0".toString() >  

必须添加参数.toString(),否则没有效果

posted @ 2017-06-23 00:16  silentax  阅读(1706)  评论(0编辑  收藏  举报