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

                #### 7.2 大數據導出View的用法 **AutopoiBigExcelExportView** 是針對大數據量導出特定的View,在跳轉到這個View的時候不需要查詢數據,而且這個View自己去查詢數據,用戶只要實現**IExcelExportServer**接口就可以了 對應的常量類**BigExcelConstants** ~~~ public interface IExcelExportServer { /** * 查詢數據接口 * @param obj 查詢條件 * @param page 當前頁數 * @return */ public List<Object> selectListForExcelExport(Object obj, int page); } ~~~ AutopoiBigExcelExportView 判斷是否還有下一頁的條件是,如果selectListForExcelExport 返回null就認為是最后一頁了,如果返回有數據這page+1繼續查詢 在我們自己的controller中 ~~~ @RequestMapping("load") public void downloadByPoiBaseView(ModelMap map, HttpServletRequest request, HttpServletResponse response) { ExportParams params = new ExportParams("2412312", "測試", ExcelType.XSSF); params.setFreezeCol(2); map.put(BigExcelConstants.CLASS, MsgClient.class); map.put(BigExcelConstants.PARAMS, params); //就是我們的查詢參數,會帶到接口中,供接口查詢使用 map.put(BigExcelConstants.DATA_PARAMS, new HashMap<String,String>()); map.put(BigExcelConstants.DATA_INTER,excelExportServer); PoiBaseView.render(map, request, response, BigExcelConstants.EASYPOI_BIG_EXCEL_VIEW); } ~~~ 我們需要把參數條件封裝成map或者其他類型,上面的obj可以把參數自己轉回來 參數名字 **BigExcelConstants.DATA\_PARAM** 然后把實現查詢的接口注入進來就可以了 ***map.put(BigExcelConstants.DATA\_INTER,excelExportServer);*** 后面就和其他View一樣了
                  <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>

                              哎呀哎呀视频在线观看