Commit 772a2824 authored by gary's avatar gary

fixbug

parent 3c8008dd
......@@ -1561,7 +1561,9 @@ public class DataImportService extends BaseService {
}
private boolean isSheetEmpty(Sheet sheet) {
if (sheet.getLastRowNum() >0 && null == sheet.getRow(0).getCell(0)&&null == sheet.getRow(0).getCell(2)) {
if (sheet.getLastRowNum() >0 &&
(null == sheet.getRow(0).getCell(0)||"Version".equals(sheet.getRow(0).getCell(0).getStringCellValue()))
&&null == sheet.getRow(0).getCell(2)) {
return true;
}
return false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment