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

 修改如下:

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

改为

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

猜你喜欢

转载自www.cnblogs.com/yanwenxue/p/9091835.html
今日推荐