// 将动态表头写入sheet,new ArrayList<>()代表写入空数据 WriteTable writeTable0 = EasyExcel.writerTable(0).head(headList).registerWriteHandler(new OnceAbsoluteMergeStrategy(0, 2, 0, 7)).needHead(Boolean.TRUE).build(); excelWriter.write(new ArrayList<>(), writeSheet, writeTable0); // 将静...
public class EasyExcelDemo { public static void main(String[] args) throws IOException { List<String> billPeriodList = new ArrayList<>(); billPeriodList.add("202306"); billPeriodList.add("202307"); List<List<String>> incomeSheetHead = getIncomeSheetHead(billPeriodList); List<List<Object>>...