From 51d2b777f22e5ff07424101f422f4793875c8e89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=BE=E7=BB=B4=E5=98=89?= <49917747@qq.com> Date: Mon, 20 Aug 2018 20:27:58 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E6=9E=90=E5=85=AC=E5=BC=8FCELL=5FTYPE?= =?UTF-8?q?=5FFORMULA=E7=B1=BB=E5=9E=8B=E6=97=B6=EF=BC=8C=E7=9B=B4?= =?UTF-8?q?=E6=8E=A5=E5=8F=96=E5=8D=95=E5=85=83=E6=A0=BC=E7=9A=84=E5=80=BC?= =?UTF-8?q?=EF=BC=8C=E8=80=8C=E9=9D=9E=E5=8F=96=E5=85=AC=E5=BC=8F=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/cn/afterturn/easypoi/util/PoiCellUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/easypoi-base/src/main/java/cn/afterturn/easypoi/util/PoiCellUtil.java b/easypoi-base/src/main/java/cn/afterturn/easypoi/util/PoiCellUtil.java index 3cde637..f516e88 100644 --- a/easypoi-base/src/main/java/cn/afterturn/easypoi/util/PoiCellUtil.java +++ b/easypoi-base/src/main/java/cn/afterturn/easypoi/util/PoiCellUtil.java @@ -114,7 +114,7 @@ public class PoiCellUtil { } else if (cell.getCellType() == Cell.CELL_TYPE_FORMULA) { - return cell.getCellFormula(); + return cell.getStringCellValue(); } else if (cell.getCellType() == Cell.CELL_TYPE_NUMERIC) {