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

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                ``` /** * @author 張躍帥 * @Description: mybatis-plus自定義mapper增強-接口 * @date 2020/08/12 */ public interface MyBaseMapper<T> extends BaseMapper<T> { /** * 自定義-分頁查詢 */ default PageResult<T> getPage(Object searchObj, Wrapper<T> queryWrapper) { // 設置分頁和排序字段及排序方式 Page<T> mpPage = PageFactory.getPage(searchObj); // 查詢全部記錄(并翻頁) Page<T> finalMpPage = this.selectPage(mpPage, queryWrapper); // 分頁結果 PageResult<T> pageResult = PageResultFactory.pageResult(finalMpPage); // 返回 return pageResult; } /** * 改造selectPage-分頁查詢 * 備注:實現自定義的分頁工廠 */ default Page<T> selectPage(Object searchObj, Wrapper<T> queryWrapper) { // 設置分頁和排序字段及排序方式 Page<T> mpPage = PageFactory.getPage(searchObj); // 查詢全部記錄(并翻頁) Page<T> finalMpPage = this.selectPage(mpPage, queryWrapper); // 返回 return finalMpPage; } /** * 批量插入-適合大量數據插入 * * @param entityList 實體List */ default boolean insertBatch(Collection<T> entityList) { return Db.saveBatch(entityList); } /** * 批量插入-適合大量數據插入 * * @param entityList 實體List * @param size 插入數量-默認為 1000 */ default boolean insertBatch(Collection<T> entityList, int size) { return Db.saveBatch(entityList, size); } /** * 根據ID批量更新-適合大量數據更新 * * @param entityList 實體List */ default boolean updateBatch(Collection<T> entityList) { return Db.updateBatchById(entityList); } /** * 根據ID批量更新-適合大量數據更新 * * @param entityList 實體List * @param size 更新數量-默認為 1000 */ default boolean updateBatch(Collection<T> entityList, int size) { return Db.updateBatchById(entityList, size); } /** * 批量修改插入-根據實體的主鍵是否為空,更新還是修改 * 默認為 1000 * * @param entityList 實體List */ default boolean saveOrUpdateBatch(Collection<T> entityList) { return Db.saveOrUpdateBatch(entityList); } }
                  <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>

                              哎呀哎呀视频在线观看