Commit d67ff9bf by 若依 Committed by Gitee

!109 现有 ExcelUtil无法读取公式计算的值

Merge pull request !109 from 厚积薄发/master
parents 986e5bb9 75d1872b
......@@ -782,7 +782,7 @@ public class ExcelUtil<T>
Cell cell = row.getCell(column);
if (cell != null)
{
if (cell.getCellTypeEnum() == CellType.NUMERIC)
if (cell.getCellTypeEnum() == CellType.NUMERIC || cell.getCellTypeEnum() == CellType.FORMULA)
{
val = cell.getNumericCellValue();
if (HSSFDateUtil.isCellDateFormatted(cell))
......
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