financial_statement.xls

    Java代码:

    1. ExcelWriter excelWriter = EasyExcel.write(fileName).withTemplate(templateFileName).build();
    2. WriteSheet writeSheet = EasyExcel.writerSheet().build();
    3. // FillConfig fillConfig = FillConfig.builder().direction(WriteDirectionEnum.VERTICAL).build();
    4. FillConfig fillConfig = FillConfig.builder().forceNewRow(Boolean.TRUE).build();
    5. excelWriter.fill(list, fillConfig, writeSheet);
    6. Map map = new HashMap();
    7. map.put("total","");
    8. excelWriter.fill(map, fillConfig, writeSheet);

    image.png