<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>