Browse Source

Pull request #5994: BI-105913 BI导出变慢,按照10.0修改的方法改一下

Merge in CORE/base-third from ~ABEL.CHEN/base-third:bugfix/11.0 to bugfix/11.0

* commit '1539f4629d066eb9893bb73e41445a597c788327':
  BI导出变慢
bugfix/KERNEL-11409-jackson
abel.chen 2 years ago
parent
commit
afad8ac5ff
  1. 7
      fine-poi/src/main/java/com/fr/third/v2/org/apache/poi/xssf/usermodel/XSSFSheet.java

7
fine-poi/src/main/java/com/fr/third/v2/org/apache/poi/xssf/usermodel/XSSFSheet.java

@ -174,6 +174,7 @@ public class XSSFSheet extends POIXMLDocumentPart implements Sheet {
private SortedMap<String,XSSFTable> tables;
private List<CellRangeAddress> arrayFormulas;
private XSSFDataValidationHelper dataValidationHelper;
private int size;
/**
* Creates new XSSFSheet - called by XSSFWorkbook to create a sheet from scratch.
@ -413,12 +414,8 @@ public class XSSFSheet extends POIXMLDocumentPart implements Sheet {
CTMergeCells ctMergeCells = worksheet.isSetMergeCells() ? worksheet.getMergeCells() : worksheet.addNewMergeCells();
CTMergeCell ctMergeCell = ctMergeCells.addNewMergeCell();
ctMergeCell.setRef(region.formatAsString());
final int numMergeRegions=ctMergeCells.sizeOfMergeCellArray();
// also adjust the number of merged regions overall
ctMergeCells.setCount(numMergeRegions);
return numMergeRegions-1;
return ++this.size;
}
/**

Loading…
Cancel
Save