mybatis 调用存储过程

<select id="selectGenCodeBySql" parameterType="hashmap" statementType="CALLABLE">
<![CDATA[
call proc_GenerateID (#{type,jdbcType=VARCHAR,mode=IN}, 5 , #{result,jdbcType=VARCHAR,mode=OUT});
]]>

</select>

 

type 为输入

result 为输出

原文地址:https://www.cnblogs.com/smallFishs/p/6183680.html