private SheetTemplate exportExcelByMapHandler(List<MapSheetWrapper> sheetWrappers,
                                                  String templatePath)
            throws Excel4JException {

        // 加载模板
        SheetTemplate template = SheetTemplateHandler.sheetTemplateBuilder(templatePath);

        // 多sheet生成
        for (MapSheetWrapper sheet : sheetWrappers) {
            generateSheet(template,
                    sheet.getSheetIndex(),
                    sheet.getData(),
                    sheet.getExtendMap(),
                    sheet.getClazz(),
                    sheet.isWriteHeader()
            );
        }

        return template;
    }
private SheetTemplate exportExcelByMapHandler ( List < MapSheetWrapper > sheetWrappers , String templatePath ) throws Excel4JException { SheetTemplate template = SheetTemplateHandler . sheetTemplateBuilder ( templatePath ) ; for ( MapSheetWrapper sheet : sheetWrappers ) { generateSheet ( template , sheet . getSheetIndex ( ) , sheet . getData ( ) , sheet . getExtendMap ( ) , sheet . getClazz ( ) , sheet . isWriteHeader ( ) ) ; } return template ; }
多sheet导出