mapper.xml中传入0作参数的情况

当传入的参数为0时,默认时传入空所以会导致有些代码不能执行

严谨的写法是

<if test= "status !=null and status !=' ' or status ==0">

发布了45 篇原创文章 · 获赞 11 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/zyc050707/article/details/103072076