mybatis if判断等于某个字符,抛 java.lang.NumberFormatException: For input string: "XXX"

错误的写法:<if test="isNotice != null and isNotice eq 'Y'">

错误的写法:<if test="isNotice != null and isNotice == 'Y'">

正确的写法:<if test="isNotice != null and isNotice eq 'Y'.toString()">

posted @ 2018-02-28 16:01  稚语希听  阅读(194)  评论(0)    收藏  举报