0
点赞
收藏
分享

微信扫一扫

mybatis if-else

秦瑟读书 2022-11-29 阅读 160


<choose>
<when test="param.type == 6 or param.type == 7">
AND (a.type = 6 or a.type = 7)
</when>
<otherwise>
AND a.type = #{param.type}
</otherwise>
</choose>

举报

相关推荐

0 条评论