use of com.kendy.excel.ExportTGExcel in project financial by greatkendy123.
the class TGExportExcelService method exportExcel.
/**
* 导出Excel
*/
public void exportExcel() {
try {
List<TGExcelModel> excelList = new ArrayList<>();
// 开销
excelList.add(getKaixiaoExcelModel());
// 玩家备注
excelList.add(getPlayerCommentExcelModel());
// 月利润
excelList.add(getMonthLirunExcelModel());
// 外债表
excelList.add(getTGWaizhaiExcelModel());
// 服务费明细
excelList.add(getFwfExcelModel());
// 战绩表
excelList.addAll(getTGTeamZhanjiExcelModels());
ExportTGExcel excelCreator = new ExportTGExcel(excelList);
excelCreator.export();
ShowUtil.show("导出成功", 2);
} catch (Exception e) {
ErrorUtil.err("导出托管公司所有数据失败", e);
e.printStackTrace();
}
}
Aggregations