Ниже фрагмент кода может помочь, если вы используете MyBatis
<select id="queryid" parameterMap="paramMap" statementType="CALLABLE">
{CALL procedureName(#{param1, mode=IN, jdbcType=VARCHAR},
#{param2, mode=IN, jdbcType=INTEGER},
#{param3, mode=IN, jdbcType=VARCHAR},
#{param4, mode=IN, jdbcType=VARCHAR},
#{param5, mode=OUT, jdbcType=VARCHAR},
#{param6, mode=OUT, jdbcType=INTEGER})}
</select>
<parameterMap id="paramMap" type="Map">
<parameter property="param1" jdbcType="VARCHAR" javaType="String" mode="IN"></parameter>
<parameter property="param2" jdbcType="INTEGER" javaType="Integer" mode="IN"></parameter>
<parameter property="param3" jdbcType="VARCHAR" javaType="String" mode="IN"></parameter>
<parameter property="param4" jdbcType="VARCHAR" javaType="String" mode="IN"></parameter>
<parameter property="param5" jdbcType="VARCHAR" javaType="String" mode="OUT"></parameter>
<parameter property="param6" jdbcType="INTEGER" javaType="Integer" mode="OUT"></parameter>
</parameterMap>