正文:
加上.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
正文:
加上.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