第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

LONG型IN操作時(shí)mybatis 出現(xiàn)UndeclaredThrowableException異常

LONG型IN操作時(shí)mybatis 出現(xiàn)UndeclaredThrowableException異常

精慕HU 2019-01-19 00:16:46
sql精簡如下: select CHECKLIST_ID from A WHERE CHECKLIST_ID in (1,2)) order by DT_UPDATE desc 其中CHECKLIST_ID pojo層為LONG型,mybatis resultMap映射如下 <id column="CHECKLIST_ID" jdbcType="DECIMAL" property="checklistId"/> Example_Where_Clause如下 <when test="criterion.listValue"> and ${criterion.condition} <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> #{listItem} </foreach> </when> 這樣會(huì)報(bào)錯(cuò) org.apache.ibatis.exceptions.PersistenceException: Error querying database. Cause: java.lang.reflect.UndeclaredThrowableException The error may exist in com/lianpay/risk/check/sqlmap/RiskEventChecklistMapper.xml 當(dāng) #{listItem}改成 ${listItem} 就沒有什么問題,即: <when test="criterion.listValue"> and ${criterion.condition} <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> ${listItem} </foreach> </when> 求解,之前一直那么用的,難道和LONG型有關(guān)??
查看完整描述

1 回答

  • 1 回答
  • 0 關(guān)注
  • 1102 瀏覽

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號