Mybatis的if test字符串比较问题
2013-04-27 17:19
281 查看
<if test="isExpired=='Y'">
and msg.expire_time < now()
</if>
会报NumberFormatException,这样就可以了。
<if test="isExpired=='Y'.toString()">
and msg.expire_time < now()
</if>
在这里找到的答案https://code.google.com/p/mybatis/issues/detail?id=262
and msg.expire_time < now()
</if>
会报NumberFormatException,这样就可以了。
<if test="isExpired=='Y'.toString()">
and msg.expire_time < now()
</if>
在这里找到的答案https://code.google.com/p/mybatis/issues/detail?id=262
相关文章推荐
- Mybatis的if test字符串比较问题
- Mybatis的if test字符串比较问题
- Mybatis的if test字符串比较问题
- Mybatis 中 if test字符串比较问题
- Mybatis的if test字符串比较问题
- Mybatis的if test字符串比较问题
- Mybatis的if test字符串比较问题
- Mybatis 中 if test字符串比较问题
- Mybatis的if test字符串比较问题
- Mybatis的if test字符串比较问题,mapper用等于又要用>比较<比较解决冲突
- Mybatis的if test字符串比较问题
- Mybatis if test中字符串比较
- mybatis if test 字符串比较错误处理
- MyBatis if test 字符串判断问题
- mybatis if test 字符串判断问题
- Mybatis if test中字符串比较(内双外单)
- mybatis,在使用if test进行字符串比较
- MyBatis if test 字符串比较
- Mybatis if test中字符串比较和Mybatis的like查询
- Mybatis if test中字符串比较