0
点赞
收藏
分享

微信扫一扫

mybatis中 bit类型判断

闲嫌咸贤 2023-02-20 阅读 104


<if test="recommend != null and recommend == true">
and g.recommend = 1
</if>
<if test="recommend != null and recommend == false">
and g.recommend = 0
</if>

recommend类型是bit类型,判断时只能用0(代表false)或者1 (true)


举报

相关推荐

0 条评论