|
|
@ -98,10 +98,16 @@ public class ExcelBuilderImpl implements ExcelBuilder { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void addContent(List data, WriteSheet writeSheet, WriteTable writeTable, String password) { |
|
|
|
public void addContent(List data, WriteSheet writeSheet, WriteTable writeTable, String password) { |
|
|
|
try { |
|
|
|
try { |
|
|
|
context.currentSheet(writeSheet); |
|
|
|
if (data == null) { |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
context.currentSheet(writeSheet, WriteTypeEnum.ADD); |
|
|
|
context.currentTable(writeTable); |
|
|
|
context.currentTable(writeTable); |
|
|
|
context.setPassword(password); |
|
|
|
context.setPassword(password); |
|
|
|
doAddContent(data); |
|
|
|
if (excelWriteAddExecutor == null) { |
|
|
|
|
|
|
|
excelWriteAddExecutor = new ExcelWriteAddExecutor(context); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
excelWriteAddExecutor.add(data); |
|
|
|
} catch (RuntimeException e) { |
|
|
|
} catch (RuntimeException e) { |
|
|
|
finish(); |
|
|
|
finish(); |
|
|
|
throw e; |
|
|
|
throw e; |
|
|
|