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

        }

  • 相关阅读:
    Nginx的访问控制
    远程登录
    Linux的网络命令
    laravel-collect
    laravel-model
    laravel-Macroable
    laravel-容器
    机器学习-Logisitic回归
    机器学习-多变量线性回归
    算法笔记-分支界限法
  • 原文地址:https://www.cnblogs.com/javafan/p/3671313.html
Copyright © 2011-2022 走看看