发新话题
打印

oracle调取存储过程mybits-plus:...collection does not contain value for cursorMap

oracle调取存储过程mybits-plus:...collection does not contain value for cursorMap

Springboot在使用mybits-plus调取存储过程时,总是提示Result Maps collection does not contain value for cursorMap,折腾了好几天原来是在map.xml里调取时有多余的空格。
<select id="getUerInfoF4U" statementType="CALLABLE" resultType="com.central.dto.response.user.UserInfoF4RespDto">
{
CALL PK_actcenter.pr_zhcw_10004(
#{iagenterid, jdbcType=VARCHAR, mode=IN},
#{iusername, jdbcType=VARCHAR, mode=IN},
#{oerrorcode, jdbcType=VARCHAR, mode=OUT},
#{oerrormsg, jdbcType=VARCHAR, mode=OUT}
)
}
</select>
注意的问题:
每个#{}之间不能分行写,因为翻译过来会有空格,会报错。最好写在一行吧,免得麻烦,就是不好看而已。
[ 本帖最后由 xiexie 于 2022-5-5 18:16 编辑 ]

TOP

发新话题