【Mybatis】【8】if标签中文判断的处理

正文:

加上.toString()

<if test="name!= null  and name!= '' and name!= ''.toString()">
    AND NAME = #{name}
</if>

参考博客:

Mybatis中xml对if标签中文判断的处理 - 每天进步一点点 - CSDN博客
https://blog.csdn.net/weisong530624687/article/details/50728310

posted @ 2019-06-08 22:00  花生喂龙  阅读(1160)  评论(0编辑  收藏  举报