说明:
数据值
com.common.Constants 常量类
SMS_TYPE_ONE 常量
SMS_TYPE_FOUR 常量
SMS_TYPE_THREE 常量
标签
使用 标签做if else 运算
代码
<choose>
<when test="condition.productType == @com.common.Constants@SMS_TYPE_ONE || condition.productType == @com.common.Constants@SMS_TYPE_FOUR">
appAddr = #{condition.addr},
</when>
<when test="condition.productType == @com.common.Constants@SMS_TYPE_THREE">
pageAddr = #{condition.addr},
</when>
</choose>