Mybatis的if test字符串比較問題,mapper用等於又要用>比較

第一種解決方法:web <if test="isExpired=='Y'"> and msg.expire_time < now() </if> 會報NumberFormatException,這樣就能夠了。 <if test="isExpired=='Y'.toString()"> and msg.expire_time < now() </if> 第二種解決方法svg <if te
相關文章
相關標籤/搜索