正文:

加上.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

相关文章:

  • 2022-12-23
  • 2021-09-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-26
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-04
  • 2021-07-10
  • 2021-06-24
相关资源
相似解决方案