From df93284c95c38d9f8f12578faeb39b36849eda62 Mon Sep 17 00:00:00 2001 From: "jipengfei.jpf" Date: Thu, 15 Nov 2018 11:51:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AD=97=E7=AC=A6=E4=B8=B2?= =?UTF-8?q?=E6=95=B0=E5=AD=97=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/alibaba/excel/analysis/BaseSaxAnalyser.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/alibaba/excel/analysis/BaseSaxAnalyser.java b/src/main/java/com/alibaba/excel/analysis/BaseSaxAnalyser.java index 54f7b55..45c0d9b 100644 --- a/src/main/java/com/alibaba/excel/analysis/BaseSaxAnalyser.java +++ b/src/main/java/com/alibaba/excel/analysis/BaseSaxAnalyser.java @@ -61,10 +61,11 @@ public abstract class BaseSaxAnalyser implements AnalysisEventRegisterCenter, Ex (List)analysisContext.getCurrentRowAnalysisResult()); } } else { + List content = converter((List)event.getData()); /** Parsing Analyze the body content **/ - analysisContext.setCurrentRowAnalysisResult(event.getData()); + analysisContext.setCurrentRowAnalysisResult(content); if (listeners.size() == 1) { - analysisContext.setCurrentRowAnalysisResult(converter((List)event.getData())); + analysisContext.setCurrentRowAnalysisResult(content); } /** notify all event listeners **/ for (Map.Entry entry : listeners.entrySet()) {