From 760706ec708ac43fb81526c0153bd4375be13db2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8E=9A=E7=A7=AF=E8=96=84=E5=8F=91?= <837944603@qq.com> Date: Thu, 25 Jul 2019 09:17:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20ExcelUtil.java=20=E8=AF=BB?= =?UTF-8?q?=E5=8F=96=E5=8D=95=E5=85=83=E6=A0=BC=E5=85=AC=E5=BC=8F=E7=9A=84?= =?UTF-8?q?=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/ruoyi/common/utils/poi/ExcelUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/utils/poi/ExcelUtil.java b/ruoyi-common/src/main/java/com/ruoyi/common/utils/poi/ExcelUtil.java index bb47fba3..4d6f5110 100644 --- a/ruoyi-common/src/main/java/com/ruoyi/common/utils/poi/ExcelUtil.java +++ b/ruoyi-common/src/main/java/com/ruoyi/common/utils/poi/ExcelUtil.java @@ -782,7 +782,7 @@ public class ExcelUtil 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))