在 MyBatis 中调用Oracle存储过程

来源:互联网 发布:狮王white牙膏知乎 编辑:程序博客网 时间:2024/05/18 00:08



<select id="WarningInfoInitByEntId" statementType="CALLABLE" parameterType="java.util.Map" resultType="java.lang.Integer">  select Ent_Warning_info(#{enterpriseId,jdbcType=DECIMAL}) from dual</select>

解析:

statementType="CALLABLE"   表示调用存储过程;

Ent_Warning_info   存储过程的方法;

#{enterpriseId,jdbcType=DECIMAL}   传递进去的参数和参数类型


原创粉丝点击