SpringBoot 中调用存储过程的方法
文章目录
1 在 XXXmapper.xml 文件中
<select id="callProOutStock" parameterType="map" statementType="CALLABLE" resultType="int">
{
call pro_out_stock(
#{deptId, mode=IN, jdbcType=VARCHAR},
#{goodsNo, mode=IN, jdbcType=VARCHAR},
#{storageNo, mode=IN, jdbcType=VARCHAR},
#{amount, mode=IN, jdbcType=NUMERIC},
#{result, mode=OUT, jdbcType=NUMERIC}
)
}
</select>
2 在 XXXmapper.java中
int callProOutStock(@Param("deptId") String deptId, @Param("goodsNo") String goodsNo, @Param("storageNo") String storageNo, @Param("amount") int amount, @Param("result") int result);

评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论