mirror of https://gitee.com/y_project/RuoYi.git
优化Excel导入增加空行判断
parent
26e6bbcb6a
commit
e69f043cad
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue