forked from github/dataease
fix: 校验 excel 空单元格
This commit is contained in:
parent
8a2069c32a
commit
42b8840a58
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user