mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-05-19 03:26:59 +00:00
fix[storage]: excel的首个单元格为空的不读取数据
This commit is contained in:
@@ -75,6 +75,12 @@ public class ExcelToJsonUtils {
|
||||
List<ResourceRow> rows = new ArrayList<>();
|
||||
while (iterator.hasNext()) {
|
||||
var row = iterator.next();
|
||||
|
||||
var idCell = row.getCell(0);
|
||||
if (StringUtils.isBlank(CellUtils.getCellStringValue(idCell))) {
|
||||
continue;
|
||||
}
|
||||
|
||||
var columns = new ArrayList<String>();
|
||||
for (var header : headers) {
|
||||
var cell = row.getCell(header.getIndex());
|
||||
|
||||
Reference in New Issue
Block a user