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);
            }

        }

  • 相关阅读:
    DataGrip中执行ORACL语句块进行代码测试
    ORACLE存储过程中使用SELECT INOT语句避免NO_DATA_FOUND的方法
    Pandas和numpy如何显示全部数据
    qrcodejs2+html2canvas生产二维码海报vue
    SQL多表查询
    行者app定位不准的问题分析
    Gdb printer打印STL
    Linux中的文件和目录结构详解
    Linux 文件的路径以及管理
    linux创建ftp服务
  • 原文地址:https://www.cnblogs.com/javafan/p/3671313.html
Copyright © 2011-2022 走看看