mybatis的choose标签相当于java里面的if,else
<choose>
<when test="code != ''">
select * from dual
</when>
<otherwise>
select * from dual
</otherwise>
</choose>