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

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                # 組件源碼 ``` /** * <b>方法描述:</b> 刪除(按BatchIds) <br/> * <b>創建者:</b> admin <br/> * <b>創建時間:</b> 2020-09-14 11:53:52 <br/> * * @param poolName * 入參|數據源名稱|{@link java.lang.String} * @param className * 入參|執行操作類名|{@link java.lang.String} * @param ids * 入參|id集合|{@link java.util.List} * @param count * 出參|處理條數|{@link int} * @return -1 異常<br/> * 0 失敗<br/> * 1 成功<br/> */ @Component(label = "刪除(BatchIds)", style = "判斷型", type = "同步組件", comment = "根據數據庫主鍵集合,批量刪除", version = "1.0.0", deprecated = false, author = "admin", date = "2020-09-14 11:53:52") @InParams(param = {@Param(name = "poolName", comment = "數據源名稱", type = java.lang.String.class), @Param(name = "className", comment = "執行操作類名", type = java.lang.String.class), @Param(name = "ids", comment = "id集合", type = java.util.List.class)}) @OutParams(param = {@Param(name = "count", comment = "處理條數", type = int.class)}) @Returns( returns = {@Return(id = "-1", desp = "異常"), @Return(id = "0", desp = "失敗"), @Return(id = "1", desp = "成功")}) public static ResultBase P_deleteByBatchIds(String poolName, String className, List ids) { try { AppLog.debug("根據字段 刪除數據 組件參數:poolName={},className={},ids={}", poolName, className, ids); if (StringUtil.isEmpty(className)) { return ResultBase.newFailureResult("TPTD0001", "參數錯誤:執行類參數【className】不能為空"); } if (CollectionUtil.isEmpty(ids)) { return ResultBase.newFailureResult("TPTD0010", "參數錯誤:條件類【ids】不能為空"); } setDatasource(poolName); Object maper = BundleUtil.getService(className); if (maper == null) { return ResultBase.newFailureResult("TPTD0010", "錯誤:當前環境未找到[" + className + "]的可用數據庫操作Mapper 實例"); } Method method = getMethod(maper.getClass(), className, MybatisPlusMapperMehtod.deleteBatchIds); if (method != null) { AppLog.debug("開始執行相應的Mapper 方法"); return ResultBase.newSuccessResult(method.invoke(maper, ids)); } } catch (Exception e) { AppLog.error(e); return ResultBase.newExceptionResult("TPTD0003", "方法調用錯誤,類:" + className + "調用:" + MybatisPlusMapperMehtod.deleteBatchIds + " 方法錯誤" + AppLog.errorMsg(e)); } return ResultBase.newFailureResult("TPTD0004", "方法調用錯誤,類:" + className + "沒有可執行方法:" + MybatisPlusMapperMehtod.deleteBatchIds); } ``` # 交易中組件使用方式 ![](https://img.kancloud.cn/46/df/46df27a37b81911043620cf81443ea8f_1868x891.png) # 參數說明及示例 ## 入口參數 數據源名稱:使用的數據源名稱,可以為空 執行操作類名:執行 SQL 語句的類,示例: `"data.test.test.mapper.TUserMapper"` id集合:需要刪除的記錄的 id,示例: `[7,8]` ## 出口參數 處理條數:成功刪除的記錄數,示例: `__INNER__["result"]` > 當交易部署到微服務上時,數據源在微服務界面上配置。
                  <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>

                              哎呀哎呀视频在线观看