<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、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                # 組件源碼 ``` /** * <b>方法描述:</b> 查詢(list) <br/> * <b>創建者:</b> admin <br/> * <b>創建時間:</b> 2020-09-14 17:01:24 <br/> * * @param poolName * 入參|數據源名稱|{@link java.lang.String} * @param className * 入參|執行操作類名|{@link java.lang.String} * @param entity * 入參|條件|{@link com.baomidou.mybatisplus.extension.activerecord.Model} * @param list * 出參|查詢條數|{@link java.util.List} * @return -1 異常<br/> * 0 失敗<br/> * 2 無數據<br/> * 1 成功<br/> */ @Component(label = "查詢(list)", style = "判斷型", type = "同步組件", comment = "根據條件查詢符合的全部數據,參數為空時查詢全部", version = "1.0.0", deprecated = false, author = "admin", date = "2020-09-14 05:01:24") @InParams(param = {@Param(name = "poolName", comment = "數據源名稱", type = java.lang.String.class), @Param(name = "className", comment = "執行操作類名", type = java.lang.String.class), @Param(name = "entity", comment = "條件", type = com.baomidou.mybatisplus.extension.activerecord.Model.class)}) @OutParams(param = {@Param(name = "list", comment = "查詢條數", type = java.util.List.class)}) @Returns(returns = {@Return(id = "-1", desp = "異常"), @Return(id = "0", desp = "失敗"), @Return(id = "2", desp = "無數據"), @Return(id = "1", desp = "成功")}) @Order(value = 2) public static ResultBase P_selectList(String poolName, String className, Model entity) { try { AppLog.debug("根據字段查詢數據 組件參數:poolName={},className={},map={}", poolName, className, entity); if (StringUtil.isEmpty(className)) { return ResultBase.newFailureResult("TPTD0001", "參數錯誤:執行類參數【className】不能為空"); } setDatasource(poolName); Object maper = BundleUtil.getService(className); if (maper == null) { return ResultBase.newFailureResult("TPTD0010", "錯誤:當前環境未找到[" + className + "]的可用數據庫操作Mapper 實例"); } Method method = getMethod(maper.getClass(), className, MybatisPlusMapperMehtod.selectList); if (method != null) { AppLog.debug("開始執行相應的Mapper 方法"); List list = (List)method.invoke(maper, Wrappers.update(entity)); if (list.isEmpty()) return new ResultBase(2); return ResultBase.newSuccessResult(list); } } catch (Exception e) { AppLog.error(e); return ResultBase.newExceptionResult("TPTD0003", "方法調用錯誤,類:" + className + "調用:" + MybatisPlusMapperMehtod.selectList + " 方法錯誤" + AppLog.errorMsg(e)); } return ResultBase.newFailureResult("TPTD0004", "方法調用錯誤,類:" + className + "沒有可執行方法:" + MybatisPlusMapperMehtod.selectList); } ``` # 交易中組件使用方式 ![](https://img.kancloud.cn/90/fb/90fbfde22819ac117e2b5ce5c81b71cd_1869x895.png) # 參數說明及示例 ## 入口參數 數據源名稱:使用的數據源名稱,可以為空 執行操作類名:執行 SQL 語句的類,示例: `"data.test.test.mapper.TUserMapper"` 條件:傳入一個實體對象當做查詢條件,為空時查詢全部 ## 出口參數 查詢條數:根據輸入條件查詢數據,示例: `__INNER__["list"]` > 當交易部署到微服務上時,數據源在微服務界面上配置。
                  <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>

                              哎呀哎呀视频在线观看