<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                ### 三、實例參考集錦 默認輸入模式IN { call proc_test_insert ( ? ) } //僅是輸入值,需要用數組方式賦值 { call proc_test_insert ( #{name} ) } // 默認IN輸入模式 { call proc_test_insert ( #{name | OUT | VARCHAR} ) } //參數類型也可以明確指出。當然,默認為Java_Object就足夠了,一般情況下無需要指出。 { call proc_test_insert ( #{name | INOUT } ) } { call proc_test_insert ( 123, 456, #{name} ) } { call proc_test_insert ( 123, 456, #{name1}, #{name2}, #{name3 | OUT} ) } { ?= call func100 ( 123, 456 ) } // 默認返回值名稱 return { #{myname} = call func100 ( 123, 456, ) } //返回值名稱 myname import java.util.Arrays; import java.util.List; import cn.cantong.mlink.MLinkClient; import cn.cantong.mlink.MLinkTemplate; import cn.cantong.mlink.exception.DataAccessException; import cn.cantong.mlink.mo.ResultMo; public class TestTemplateProc { private static String HTTP_BASE = "http://localhost:8080"; private MLinkTemplate mlinktemplate = null; public TestTemplateProc() { MLinkClient mlinkclient = new MLinkClient(HTTP_BASE); this.mlinktemplate = new MLinkTemplate(mlinkclient); } public void test0() throws DataAccessException { System.out.println("-------------------------------"); ResultMo rm = mlinktemplate.procedure("{call proc0()}"); if (rm != null) { System.out.println(">>"+rm); } } public void test2() throws DataAccessException { System.out.println("------------------------------- 兩個輸出參數"); ResultMo rm = mlinktemplate.procedure("{call proc2( #{ count |OUT }, #{ aa | INOUT } )}"); if (rm != null) { System.out.println("count>>"+rm.getParameter("count")); System.out.println("aa>>"+rm.getParameter("aa")); } } public void test5() throws DataAccessException { System.out.println("------------------------------- 三個輸入兩個輸出參數"); ResultMo rm = mlinktemplate.procedure("{call proc5( 123, 66666666, 45.32, #{ oo1 }, #{ oo2 } )}"); if (rm != null) { System.out.println(">>"+rm); System.out.println("oo1>>"+rm.getParameter("oo1")); System.out.println("oo2>>"+rm.getParameter("oo2")); List<Object[]> list = rm.getList(); for (Object[] objs : list) { System.out.println(">>"+Arrays.toString(objs)); } } } public static void main(String[] args) { try { new TestTemplateProc().test0(); new TestTemplateProc().test2(); new TestTemplateProc().test5(); } catch (DataAccessException e) { e.printStackTrace(); } } }
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看