Przeglądaj źródła

表头层级为三级的时候,第三层表头的前部的数据被置空

4.1.3.A
哲韬 5 lat temu
rodzic
commit
7427f9eeaf
1 zmienionych plików z 6 dodań i 2 usunięć
  1. +6
    -2
      easypoi-base/src/main/java/cn/afterturn/easypoi/excel/export/ExcelExportService.java

+ 6
- 2
easypoi-base/src/main/java/cn/afterturn/easypoi/excel/export/ExcelExportService.java Wyświetl plik

@@ -74,8 +74,12 @@ public class ExcelExportService extends BaseExportService {
row.setHeight(title.getHeaderHeight());
Row listRow = null;
if (rows >= 2) {
listRow = sheet.createRow(index + 1);
listRow.setHeight(title.getHeaderHeight());
listRow = sheet.getRow(index + 1);
if (listRow == null) {
listRow = sheet.createRow(index + 1);
listRow.setHeight(title.getHeaderHeight());

}
}
int groupCellLength = 0;
CellStyle titleStyle = getExcelExportStyler().getTitleStyle(title.getColor());


Ładowanie…
Anuluj
Zapisz