【Mybatis】【9】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

猜你喜欢

转载自www.cnblogs.com/huashengweilong/p/10991895.html