1、编写存储过程 ,https://blog.csdn.net/Bof_jangle/article/details/90699212
2、编写ibatis的xml配置文件:
<parameterMap class="map" id="workflowGoBackParam">
<parameter property="in_param1" javaType="java.lang.String" jdbcType="varchar" mode="IN"/>
</parameterMap>
<procedure id="workflowGoBack" parameterMap="workflowGoBackParam">
{call workflow_go_back(?)}
</procedure>
3、编写Java后端方法的ibatis调用:
Map<String, Object> param = new HashMap<String, Object>();
param.put("in_param1", 【procInstId,实际参数】);
【IbatisObject】.getSqlMapClientTemplate().queryForObject("【namespace】.workflowGoBack", param);
注:in_param1 要进行map的对应。
参考文献:https://blog.csdn.net/it_taojingzhan/article/details/51240240