优化Excel导入增加空行判断

pull/262/head
Ricky 2021-02-01 10:23:11 +08:00
parent 26e6bbcb6a
commit e69f043cad
1 changed files with 1 additions and 1 deletions

View File

@ -226,7 +226,7 @@ public class ExcelUtil<T>
}
}
}
for (int i = 1; i < rows; i++)
for (int i = 1; i <= rows; i++)
{
// 从第2行开始取数据,默认第一行是表头.
Row row = sheet.getRow(i);