`

mybaties 0 -- null

阅读更多
<if test="type!=null and type!=''">这样判断会把0也当做null的



[处理]:
<if test="type!=null and type!=''">

改写为
<if test="type!=null">


去掉type!=''这个判断就好了
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics