用toString转一下 ==去判断相等
<if test="orderType != null and orderType!=''">
<choose>
<when test ="'0'.toString() == orderType">
AND los.marketing_type is null
</when>
<otherwise>
AND los.marketing_type is not null
</otherwise>
</choose>
</if>