提交 6c9b3882 authored 作者: taojinlong's avatar taojinlong

fix: 处理 excel 数据

上级 bbb53799
......@@ -384,9 +384,14 @@ public class ExcelXlsxReader extends DefaultHandler {
String sstIndex = value.toString();
try {
int idx = Integer.parseInt(sstIndex);
if(sst != null){
XSSFRichTextString rtss = new XSSFRichTextString(sst.getEntryAt(idx));//根据idx索引值获取内容值
thisStr = rtss.toString();
rtss = null;
}else {
thisStr = value.toString();
}
} catch (NumberFormatException ex) {
thisStr = value.toString();
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论