From 4b9341cc987be95c3a25a9fa68d476755a31e930 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=92=B1=E6=B6=9B?= <15850646081@163.com> Date: Fri, 16 Aug 2024 14:13:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81Vlookup?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/com/engine/salary/util/excel/ExcelSupport.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/engine/salary/util/excel/ExcelSupport.java b/src/com/engine/salary/util/excel/ExcelSupport.java index 8ba0aa7f6..7ec79c30b 100644 --- a/src/com/engine/salary/util/excel/ExcelSupport.java +++ b/src/com/engine/salary/util/excel/ExcelSupport.java @@ -156,7 +156,7 @@ public class ExcelSupport { // 计算公式的值 evaluator.evaluateFormulaCell(cell); // 获取公式计算后的值 - cellValue = cell.getNumericCellValue() + ""; + cellValue = cell.getStringCellValue(); } else { cellValue = String.valueOf(cell.getCellFormula()); }