HashMap map = new HashMap();
map.put("a", 9);
map.put("b", "");
List<Map> mapTestOut = userService.proTestOut(map);
List<Map> mapTestIn = userService.proTestIn(map);
mybatis:
<!-- 存储并输出 -->
<select id="proTestOut" statementType="CALLABLE" parameterType="java.util.HashMap" resultType="java.util.Map">
{call test_crud(#{a,jdbcType=INTEGER,mode=IN},
#{b,mode=OUT,jdbcType=INTEGER} )}
</select>
<!-- 存储没有输出函数 -->
<select id="proTestIn" statementType="CALLABLE" parameterType="java.util.HashMap" resultType="java.util.Map">
{call test_crud1(#{a,jdbcType=INTEGER,mode=IN})}
</select>