http://www.qqread.com/mysql/z341874.html
查询直接store procedure然后IBATIS里访问store procedure easy到了极致,连resultset都不用你自己去封装,直接:
{call P_PPQPWEB_LOGIN.SP_PPQPWEB_LOGIN_CHECKLOGIN
(
#{inputUserId},
#{inputUserPwd},
#{inputUserIP},
#{loginCheck,
mode=OUT,
javaType=java.lang.String,
jdbcType=VARCHAR
},
#{usrCur,
mode=OUT,
javaType=java.sql.ResultSet,
jdbcType=CURSOR,
resultMap=loginDBO
}
)
} 这样一下,你(List)map.get(userCur)一下,这个LIST就已经给你封装好了
{usrCur,
mode=OUT,
javaType=java.sql.ResultSet,
jdbcType=CURSOR,
resultMap=loginDBO
}
这边有一个OUT你看到了吧?
然后你代码里怎么样你知道吧?
userInfoList = (List<LoginDBO>) userInfoMap.get("usrCur");
com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: FUNCTION rbac-cms.prc_page_result does not exist
http://forums.mysql.com/read.php?46,173826,229449#msg-229449