例子如下:
当iouStatus为1的时候,我们查询状态7006的数据。
当iouStatus为3的时候,我们查询状态7006,7007的数据。
当iouStatus为4的时候,我们查询状态7007的数据。
<choose>
<when test='dto.iouStatus=="1"'>and t3.iou_state in(7006)
</when>
<when test='dto.iouStatus=="3"'>
and t3.iou_state in(7006,7007)
</when>
<when test='dto.iouStatus=="4"'>
and t3.iou_state in(7007)
</when>
<otherwise>
</otherwise>
</choose>