ソースを参照

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

Merge pull request !50 from 哲韬/master
4.1.3.A
jueyue 5年前
committed by Gitee
コミット
d92f51c899
1個のファイルの変更6行の追加2行の削除
  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 ファイルの表示

@@ -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());


読み込み中…
キャンセル
保存