修改如下:
<if test="kindcode != null and kindcode!=‘‘"> and a.kindcode =#{kindcode} </if> 改为 <if test="kindcode != null"> and a.kindcode =#{kindcode} </if>
mybatis将i==0的值也认定为空字符串
原文:https://www.cnblogs.com/yanwenxue/p/9091835.html