Browse Source

* 修复写入的性能问题

test
Jiaju Zhuang 3 years ago
parent
commit
4ea45e6e5c
  1. 5
      src/main/java/com/alibaba/excel/write/handler/impl/FillStyleCellWriteHandler.java

5
src/main/java/com/alibaba/excel/write/handler/impl/FillStyleCellWriteHandler.java

@ -5,6 +5,7 @@ import com.alibaba.excel.metadata.data.WriteCellData;
import com.alibaba.excel.util.BooleanUtils; import com.alibaba.excel.util.BooleanUtils;
import com.alibaba.excel.write.handler.CellWriteHandler; import com.alibaba.excel.write.handler.CellWriteHandler;
import com.alibaba.excel.write.handler.context.CellWriteHandlerContext; import com.alibaba.excel.write.handler.context.CellWriteHandlerContext;
import com.alibaba.excel.write.metadata.holder.WriteWorkbookHolder;
import com.alibaba.excel.write.metadata.style.WriteCellStyle; import com.alibaba.excel.write.metadata.style.WriteCellStyle;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
@ -38,8 +39,8 @@ public class FillStyleCellWriteHandler implements CellWriteHandler {
if (writeCellStyle == null && originCellStyle == null) { if (writeCellStyle == null && originCellStyle == null) {
return; return;
} }
//WriteWorkbookHolder writeWorkbookHolder = context.getWriteWorkbookHolder(); WriteWorkbookHolder writeWorkbookHolder = context.getWriteWorkbookHolder();
//context.getCell().setCellStyle(writeWorkbookHolder.createCellStyle(writeCellStyle, originCellStyle)); context.getCell().setCellStyle(writeWorkbookHolder.createCellStyle(writeCellStyle, originCellStyle));
} }
} }

Loading…
Cancel
Save