zoukankan      html  css  js  c++  java
  • MyBatis调用Oracle的存储过程

    Mapper.xml文件:

    ---------------------------------

    <parameterMap type="map" id="classificationOfUser">
            <parameter property="in_query_value" jdbcType="VARCHAR" mode="IN" />
            <parameter property="in_query_type" jdbcType="DECIMAL" mode="IN" />
            <parameter property="out_code" jdbcType="VARCHAR" mode="OUT" />
            <parameter property="out_msg" jdbcType="VARCHAR" mode="OUT" />
        </parameterMap>

    <select id="getClassificationOfUser" parameterMap="classificationOfUser" resultType="map" statementType="CALLABLE">
            {call rm.pg_hn_rm_for_ank.getUserInfo(?, ?, ?, ?)}
        </select>

    Mapper.java

    ------------------

    Map<String, Object> getClassificationOfUser(Map<String, Object> map);

    Service.java

    --------------------------------

    public void initReportData(ReportExample reportExample, LoginInfoBean loginInfoBean) {
            if (reportExample.getReportId() != null && reportExample.getReportId().intValue() == 10026) {
                Map<String, Object> map = new HashMap<String, Object>();
                map.put("in_query_value", reportExample.getAccessNumber());
                map.put("in_query_type", new Integer(1));
                map.put("out_code", null);
                map.put("out_msg", null);
                Map<String, Object> retVal = reportMapper.getClassificationOfUser(map);
                logger.debug(retVal);
            }

        }

  • 相关阅读:
    centos通过yum安装php
    CentOS6 用yum安装mysql详解,简单实用
    启用CentOS6.5 64位安装时自带的MySQL数据库服务器
    Python三方库:Pandas(数据分析)
    Python三方库:Numpy(数组处理)
    Java笔记:反射,注解
    Java笔记:多线程
    Java笔记:IO流
    Java笔记:集合
    Java笔记:数组,异常,泛型
  • 原文地址:https://www.cnblogs.com/javafan/p/3671313.html
Copyright © 2011-2022 走看看