Browse Source

修改字符串数字问题

developing
jipengfei.jpf 6 years ago
parent
commit
df93284c95
  1. 5
      src/main/java/com/alibaba/excel/analysis/BaseSaxAnalyser.java

5
src/main/java/com/alibaba/excel/analysis/BaseSaxAnalyser.java

@ -61,10 +61,11 @@ public abstract class BaseSaxAnalyser implements AnalysisEventRegisterCenter, Ex
(List<String>)analysisContext.getCurrentRowAnalysisResult()); (List<String>)analysisContext.getCurrentRowAnalysisResult());
} }
} else { } else {
List<String> content = converter((List<String>)event.getData());
/** Parsing Analyze the body content **/ /** Parsing Analyze the body content **/
analysisContext.setCurrentRowAnalysisResult(event.getData()); analysisContext.setCurrentRowAnalysisResult(content);
if (listeners.size() == 1) { if (listeners.size() == 1) {
analysisContext.setCurrentRowAnalysisResult(converter((List<String>)event.getData())); analysisContext.setCurrentRowAnalysisResult(content);
} }
/** notify all event listeners **/ /** notify all event listeners **/
for (Map.Entry<String, AnalysisEventListener> entry : listeners.entrySet()) { for (Map.Entry<String, AnalysisEventListener> entry : listeners.entrySet()) {

Loading…
Cancel
Save