<resultMap class="HuiZongObject" id="HuiZongResult">
<result property="casecontext" column="casecontext"/>
<result property="shoujian" column="shoujian"/>
<result property="banjian" column="banjian"/>
</resultMap>
<parameterMap id="getHuiZongQuery" class="map" >
<parameter property="distictId" jdbcType="INTEGER" javaType="java.lang.Integer" mode="IN"/>
<parameter property="deptId" jdbcType="INTEGER" javaType="java.lang.Integer" mode="IN"/>
<parameter property="startdate" jdbcType="VARCHAR" javaType="java.lang.String" mode="IN"/>
<parameter property="dateEnd" jdbcType="VARCHAR" javaType="java.lang.String" mode="IN"/>
</parameterMap>
<procedure id="getHuiZong" parameterMap="getHuiZongQuery" resultMap="HuiZongResult">
<![CDATA[
{call getBanJianTongJibaobiao1(?,?,?,?)}
]]>
</procedure>
dao
public List getHuiZongList(Integer distictId,Integer deptId,String startdate,String dateEnd)throws DAOException
{
try {
Map params = new HashMap();
params.put("distictId", distictId);
params.put("deptId", deptId);
params.put("startdate", startdate);
params.put("dateEnd", dateEnd);
return smcTemplate.queryForList("PrintNotice.getHuiZong", params);
} catch (Exception ex) {
logger.error("执行:" + this.getClass()
+ ".getHuiZong()方法出错!");
logger.error(ex.getMessage());
throw new DAOException();
}
}
用list获取该存储过程中的临时表中的值
分享到:
相关推荐
iBatis调用存储过程
IBATIS调用存储过程
ibatis调用存储过程.txt [removed] var share_info = {}; [removed]
用ibatis调用存储过程的介绍,使用java语言进行开发
NULL 博文链接:https://jun1986.iteye.com/blog/1290064
Ibatis中调用其它的SQL语句很容易,那么如何在Ibatis中调用存储过程呢?
ibatis调用oracle存储过程分页
ibatis调用oracle存储过程
Ibatis调用Oracle存储过程,返回自定义的类型。
ibatis调用oracle的函数,存储过程的方法,从网上收集的,还没有整理。
NULL 博文链接:https://pzh244658240.iteye.com/blog/1423681
使用J2EE+Spring+Ibatis+JDBC 调用存储过程,并返回结果集的配置详细。 供学习参考。
里面包含ibatis开发指南,以及介绍ibatis调用存储过程,分页封装以及缓存策略等内容
iBatis 1、Spring嵌套iBatis框架 2、iBatis调用存储过程 3、iBatis中设置动态表查询 4、提高iBATIS性能的几个注意点
ibatis增删查改,存储过程调用。包含表结构。
NULL 博文链接:https://fengtiejun.iteye.com/blog/1603851
使用ibatis基本配置及连接数据库 进行增删改查 存储过程及分页模拟 根据配置文件输出sql日志
ibatis入门教程及调用存储过程实例详解。