码迷,mamicode.com
首页 > 其他好文 > 详细

mybatis将i==0的值也认定为空字符串

时间:2018-05-26 10:41:47      阅读:138      评论:0      收藏:0      [点我收藏+]

标签:div   col   class   pre   字符   strong   test   mybatis   空字符串   

 修改如下:

<if test="kindcode != null and kindcode!=‘‘">
   and a.kindcode =#{kindcode}
</if>

改为

<if test="kindcode != null">
   and a.kindcode =#{kindcode}
</if>

 

mybatis将i==0的值也认定为空字符串

标签:div   col   class   pre   字符   strong   test   mybatis   空字符串   

原文地址:https://www.cnblogs.com/yanwenxue/p/9091835.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!