mybatis:(mybatis doc api: http://mybatis.github.io/mybatis-3/zh/sqlmap-xml.html#Result_Maps)
-
<
resultMap
type
=
"java.util.HashMap"
id
=
"cursorMap"
>
<
!--配置返回游标中别名对应的resultMap --
>
-
<
result
column
=
"plan_code"
property
=
"plan_code"
/>
-
<
result
column
=
"plan_dept"
property
=
"plan_dept"
/>
-
<
result
column
=
"plan_amount"
property
=
"plan_amount"
/>
-
<
result
column
=
"exec_amount"
property
=
"exec_amount"
/>
-
<
result
column
=
"plan_name"
property
=
"plan_name"
/>
-
<
result
column
=
"dept_name"
property
=
"dept_name"
/>
-
</
resultMap
>
-
<
select
id
=
"call_Fsp_Plan_CheckPrj"
parameterType
=
"map"
statementType
=
"CALLABLE"
>
-
-
{call Fsp_Plan_CheckPrj(#{grantNo,
jdbcType
=
VARCHAR
,
mode
=
IN
},
-
#{offOrgCode,
jdbcType
=
INTEGER
,
mode
=
IN
},
-
#{v_cursor,
mode
=
OUT
,
jdbcType
=
CURSOR
,
resultMap
=
cursorMap
})}
-
-
</
select
>