fix: 校验 excel 空单元格

This commit is contained in:
taojinlong 2021-07-29 16:17:03 +08:00
parent 8a2069c32a
commit 42b8840a58

View File

@ -250,7 +250,7 @@ public class ExcelXlsxReader extends DefaultHandler {
preRef = ref;
}
//补全单元格之间的空单元格
if (!"A".equals(preRef.substring(0, 1)) && curRow==1) {
if (!"A".equals(preRef.substring(0, 1)) && curRow==1 && preRef.equalsIgnoreCase(ref)) {
throw new RuntimeException(Translator.get("i18n_excel_empty_column"));
}else if (!ref.equals(preRef)) {
int len = countNullCell(ref, preRef);