提交 c88a0820 编写于 作者: 庄家钜's avatar 庄家钜

重写主流程,代码更加优雅 测试完毕

上级 75391650
......@@ -88,7 +88,7 @@ public interface AnalysisContext {
/**
* Data that the customer needs to read
*
* @return
* @param readSheetList
*/
void readSheetList(List<ReadSheet> readSheetList);
......
......@@ -37,7 +37,7 @@ public class ExcelWriteAddExecutor extends AbstractExcelWriteExecutor {
public void add(List data) {
if (CollectionUtils.isEmpty(data)) {
return;
data = new ArrayList();
}
WriteSheetHolder writeSheetHolder = writeContext.writeSheetHolder();
int newRowIndex = writeSheetHolder.getNewRowIndexAndStartDoWrite();
......
......@@ -84,6 +84,9 @@ public class ExcelWriteFillExecutor extends AbstractExcelWriteExecutor {
}
public void fill(Object data, FillConfig fillConfig) {
if (data == null) {
data = new HashMap<String,Object>(16);
}
if (fillConfig == null) {
fillConfig = FillConfig.builder().build(true);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册