提交 4f9bcc70 编写于 作者: H huaiyu

合并冲突 修改原来的写法

上级 3b2c9159
......@@ -98,10 +98,16 @@ public class ExcelBuilderImpl implements ExcelBuilder {
@Override
public void addContent(List data, WriteSheet writeSheet, WriteTable writeTable, String password) {
try {
context.currentSheet(writeSheet);
if (data == null) {
return;
}
context.currentSheet(writeSheet, WriteTypeEnum.ADD);
context.currentTable(writeTable);
context.setPassword(password);
doAddContent(data);
if (excelWriteAddExecutor == null) {
excelWriteAddExecutor = new ExcelWriteAddExecutor(context);
}
excelWriteAddExecutor.add(data);
} catch (RuntimeException e) {
finish();
throw e;
......
......@@ -261,4 +261,12 @@ public class WriteWorkbookHolder extends AbstractWriteHolder {
public HolderEnum holderType() {
return HolderEnum.WORKBOOK;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册