注解
This commit is contained in:
@@ -87,6 +87,7 @@ public class ExcelImportUtilByWk {
|
|||||||
Row headRow=sheet.getRow(firstRowNum);
|
Row headRow=sheet.getRow(firstRowNum);
|
||||||
for (int j=0;j<mapExcel.keySet().size();j++){
|
for (int j=0;j<mapExcel.keySet().size();j++){
|
||||||
if (!headRow.getCell(j).toString().equals(mapExcel.get(j).name())){
|
if (!headRow.getCell(j).toString().equals(mapExcel.get(j).name())){
|
||||||
|
//返回null就是表头没对上 excel错误
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user