版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/sotong006/article/details/81335861
第一种解决方法:
<if test="isExpired=='Y'">
and msg.expire_time < now()
</if>
会报NumberFormatException,这样就可以了。
<if test="isExpired=='Y'.toString()">
and msg.expire_time < now()
</if>
第二种解决方法:
<if test=" name=='张三' ">
<if>
这样会有问题,换成
<if test=' name=="张三" '>
<if>