网上demo
<if test="isExpired=='Y'">
and msg.expire_time < now()
</if>
会报NumberFormatException,这样就可以了。
<if test="isExpired=='Y'.toString()">
and msg.expire_time < now()
</if>
遇到不是这个问题 。
我这边实际遇到的问题
就是两个值明明相等结果就是false
后面改成这样了
<if test=’ distributionLevel==”1″ ‘>
AND pre.hxxt_id is not null
</if>
486



被折叠的 条评论
为什么被折叠?



