From fa73c782463acafb2a9f8d2d4ba9deaf675f17ba Mon Sep 17 00:00:00 2001 From: laiyijie <449132062@qq.com> Date: Tue, 19 May 2020 18:48:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=85=A8=E5=85=AC=E5=BC=8F?= =?UTF-8?q?=E7=9A=84=E8=A1=8C=E6=97=A0=E6=B3=95=E8=A2=AB=E8=AF=BB=E5=8F=96?= =?UTF-8?q?=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../excel/analysis/v03/handlers/FormulaRecordHandler.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/alibaba/excel/analysis/v03/handlers/FormulaRecordHandler.java b/src/main/java/com/alibaba/excel/analysis/v03/handlers/FormulaRecordHandler.java index 099b308..5ac5eeb 100644 --- a/src/main/java/com/alibaba/excel/analysis/v03/handlers/FormulaRecordHandler.java +++ b/src/main/java/com/alibaba/excel/analysis/v03/handlers/FormulaRecordHandler.java @@ -3,6 +3,7 @@ package com.alibaba.excel.analysis.v03.handlers; import java.math.BigDecimal; import java.util.Map; +import com.alibaba.excel.enums.RowTypeEnum; import org.apache.poi.hssf.model.HSSFFormulaParser; import org.apache.poi.hssf.record.FormulaRecord; import org.apache.poi.hssf.record.Record; @@ -76,5 +77,6 @@ public class FormulaRecordHandler extends AbstractXlsRecordHandler implements Ig cellMap.put((int)frec.getColumn(), tempCellData); break; } + xlsReadContext.xlsReadSheetHolder().setTempRowType(RowTypeEnum.DATA); } }