Skip to content

Commit

Permalink
添加excel2003注释
Browse files Browse the repository at this point in the history
  • Loading branch information
SwordfallYeung committed Jan 20, 2018
1 parent 29176aa commit c8b816a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/poi/ExcelXlsReader.java
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public int process(String fileName) throws Exception {
}
factory.processWorkbookEvents(request, fs);

return totalRows; //不需要首行,首行为列名
return totalRows; //返回该excel文件的总行数,不包括首列和空行
}


Expand Down Expand Up @@ -268,7 +268,7 @@ public void processRecord(Record record) {
}
lastColumnNumber = -1;

if (flag&&curRow!=0) { //该行不为空行且该行不是第一行,发送
if (flag&&curRow!=0) { //该行不为空行且该行不是第一行,发送(第一行为列名,不需要)
ExcelReaderUtil.sendRows(filePath, sheetName, sheetIndex, curRow + 1, cellList); //每行结束时,调用sendRows()方法
totalRows++;
}
Expand Down

0 comments on commit c8b816a

Please sign in to comment.