From b083db50ac7513267aca871256641149c3aa7f4b Mon Sep 17 00:00:00 2001 From: lxyer <237809796@qq.com> Date: Wed, 20 Nov 2019 16:44:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=EF=BC=9AExcel=E8=A1=A8?= =?UTF-8?q?=E6=A0=BC=E5=B0=8F=E6=95=B0=20=E7=B2=BE=E5=BA=A6=E4=B8=A2?= =?UTF-8?q?=E5=A4=B1=E7=9A=84=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/net/tccn/kit/poi/ExcelKit.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/net/tccn/kit/poi/ExcelKit.java b/src/net/tccn/kit/poi/ExcelKit.java index 3049871..817fb50 100644 --- a/src/net/tccn/kit/poi/ExcelKit.java +++ b/src/net/tccn/kit/poi/ExcelKit.java @@ -304,7 +304,7 @@ public class ExcelKit { } if (cell.getCellType() == CellType.NUMERIC) { - map.put(fields[j], (long) cell.getNumericCellValue() + ""); + map.put(fields[j], cell.getNumericCellValue() + ""); } else { map.put(fields[j], cell.getStringCellValue()); } @@ -346,7 +346,7 @@ public class ExcelKit { } if (cell.getCellType() == CellType.NUMERIC) { - map.put(field, (long) cell.getNumericCellValue() + ""); + map.put(field, cell.getNumericCellValue() + ""); } else { map.put(field, cell.getStringCellValue()); }