<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>
11-09
669
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
<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>