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

Merge pull request !109 from 厚积薄发/master
This commit is contained in:
若依
2019-07-27 10:50:54 +08:00
committed by Gitee

View File

@ -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))