1、Excel优化

Former-commit-id: 075525f72ca75d41fffa336ab7f6abcd14a4b342
master
wangbing 5 years ago
parent 1c0757248d
commit cc0cdb9ed6

@ -541,6 +541,7 @@ public class WExcel<T> implements Serializable, Cloneable {
WRow wRow = this.rowList.get(i); WRow wRow = this.rowList.get(i);
Row row = sheet.createRow(i + 1); Row row = sheet.createRow(i + 1);
if(offset> 0){
if (this.rowList.get(i).hasError()) { if (this.rowList.get(i).hasError()) {
// 添加结果 // 添加结果
List<String> errorList = wRow.getErrorList(); List<String> errorList = wRow.getErrorList();
@ -562,6 +563,7 @@ public class WExcel<T> implements Serializable, Cloneable {
errsCell.setCellStyle(new SuccessCellStyle(workbook).getStyle()); errsCell.setCellStyle(new SuccessCellStyle(workbook).getStyle());
errsCell.setCellValue(""); errsCell.setCellValue("");
} }
}
for (int j = 0; j < this.columnList.size(); j++) { for (int j = 0; j < this.columnList.size(); j++) {
WColumn column = this.columnList.get(j); WColumn column = this.columnList.get(j);

Loading…
Cancel
Save

Powered by TurnKey Linux.