<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>

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                ## SQLResult 有時候,也許你只需要SQL及其參數列表,然后傳給你自己的dao工具類,這時候你需要SQLResult,它包含了你需要的sql,和sql參數。 SQLManager 有如下方法,你需要傳入sqlid,和參數即可 ```java public SQLResult getSQLResult(String sqlId, Map<String, Object> paras) ``` paras 是一個map,如果你只有一個pojo作為參數,你可以使用`_root` 作為key,這樣sql模版找不到名稱對應的屬性值的時候,會尋找`_root` 對象,如果存在,則取其同名屬性。 SQLResult 如下: ```java public class SQLResult { public String jdbcSql; public List<SQLParameter> jdbcPara; public Object[] toObjectArray(){}; public TemplateContext templateContext ; } ``` jdbcSql是渲染過后的sql,jdbcPara 是對應的參數描述,toObjectArray 是sql對應的參數值。 SQLParameter 用來描述參數,主要包含了 * value: 參數值 * expression ,參數對應的表達式,如下sql ```sql select * from user where id = #{id} ``` 則expression 就是字符串id * type,expression 類型,因為sql里有可能是一個復雜的表達式,因此type有如下值NAME_GENEARL:簡單的表達式,如id, NAME_EXPRESSION:復雜表達式,比如函數調用,邏輯運算表達式 對于開發者來說,只需要關心sql對應的參數值即可,因此可以調用toObjectArray得到。 templateContext是模板執行中產生的變量,比如 ```sql xxxx === -- @ var id = 1; select * from user where id =#{id} ``` 可以調用 templateContext.getVar("id"),返回1
                  <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>

                              哎呀哎呀视频在线观看