Althars123 1 жил өмнө
parent
commit
19ac940403

+ 1 - 1
xxgl-common/src/main/java/com/miaxis/common/utils/poi/ExcelUtil.java

@@ -149,7 +149,7 @@ public class ExcelUtil<T>
             throw new IOException("文件sheet不存在");
         }
 
-        int rows = sheet.getPhysicalNumberOfRows();
+        int rows = sheet.getLastRowNum()+1;
 
         if (rows > 0)
         {