<if test="store != null and goodsstatus != '' ">
and store <![CDATA[ <= ]]> #{store}
</if>
改成
<if test="store != null ">
and store <![CDATA[ <= ]]> #{store}
</if>
去掉空字符串的判断条件
mybatis 查询条件为小于等于0,查询到了所有数据
最新推荐文章于 2024-05-10 14:57:36 发布