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

                #### 3.2 基本導出 看一個常見的到處模板--專項支出用款申請書 ![模板s](https://static.oschina.net/uploads/img/201709/26145656_oqzr.png "在這里輸入圖片標題") 這里面有正常的標簽以及$fe遍歷,$fe遍歷應該是使用最廣的遍歷,用來解決遍歷后下面還有數據的處理方式 我們要生成的是這個需要一些list集合和一些單純的數據 fe的寫法 fe標志 冒號 list數據 單個元素數據(默認t,可以不寫) 第一個元素 {{$fe: maplist t t.id }} 看下數據代碼,主要是構造數據TemplateExportParams是主要的參數數據 ~~~ @Test public void fe_map() throws Exception { TemplateExportParams params = new TemplateExportParams( "WEB-INF/doc/專項支出用款申請書_map.xls"); Map<String, Object> map = new HashMap<String, Object>(); map.put("date", "2014-12-25"); map.put("money", 2000000.00); map.put("upperMoney", "貳佰萬"); map.put("company", "執筆潛行科技有限公司"); map.put("bureau", "財政局"); map.put("person", "JueYue"); map.put("phone", "1879740****"); List<Map<String, String>> listMap = new ArrayList<Map<String, String>>(); for (int i = 0; i < 4; i++) { Map<String, String> lm = new HashMap<String, String>(); lm.put("id", i + 1 + ""); lm.put("zijin", i * 10000 + ""); lm.put("bianma", "A001"); lm.put("mingcheng", "設計"); lm.put("xiangmumingcheng", "EasyPoi " + i + "期"); lm.put("quancheng", "開源項目"); lm.put("sqje", i * 10000 + ""); lm.put("hdje", i * 10000 + ""); listMap.add(lm); } map.put("maplist", listMap); Workbook workbook = ExcelExportUtil.exportExcel(params, map); File savefile = new File("D:/excel/"); if (!savefile.exists()) { savefile.mkdirs(); } FileOutputStream fos = new FileOutputStream("D:/excel/專項支出用款申請書_map.xls"); workbook.write(fos); fos.close(); } ~~~ 看下輸出的效果 ![模板導出效果](https://static.oschina.net/uploads/img/201709/26150826_DKZQ.png "在這里輸入圖片標題")
                  <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>

                              哎呀哎呀视频在线观看