programming/ibatis mybatis

[mybatis] function 호출하고 리턴값 받기

labj 2014. 8. 4. 19:51

[mybatis] function 호출하고 리턴값 받기


    String strResult1 = ordDetailService.funccall(ordDetail7);


    @Override
    public String funccall(T domain) throws Exception {
        return this.crudMapper.funccall(domain);
    }



    <select id="funccall" parameterType="OrderDetail"    statementType="CALLABLE">
   
     { #{ordCancelResult,jdbcType=VARCHAR, mode=OUT} = call F_WMS_CHANGE_ORDER_ITEM(#{ordSno ,jdbcType=VARCHAR, mode=IN},
                                        #{ordGoodsId ,jdbcType=VARCHAR, mode=IN},
                                        #{ordNums    ,jdbcType=NUMERIC, mode=IN},
                                        #{flag       ,jdbcType=NUMERIC, mode=IN},
                                        #{adminFlag  ,jdbcType=NUMERIC, mode=IN})}
       
    </select>


[mybatis] function 호출하고 리턴값 받기