<choose>
<when test="cnpm != null and cnpm == 0">
tz.cnpm = 0
</when>
<when test="cnpm != null and cnpm == 2">
tz.cnpm = 2
</when>
<otherwise>
tz.cnpm = 1
</otherwise>
</choose>