Browse Source

Merge branch 'bugfix' into developing

developing
Jiaju Zhuang 3 years ago
parent
commit
2433e99dca
  1. 14
      src/main/java/com/alibaba/excel/analysis/v07/handlers/CellTagHandler.java

14
src/main/java/com/alibaba/excel/analysis/v07/handlers/CellTagHandler.java

@ -29,13 +29,13 @@ public class CellTagHandler extends AbstractXlsxTagHandler {
xlsxReadSheetHolder.setColumnIndex(PositionUtils.getCol(attributes.getValue(ExcelXmlConstants.ATTRIBUTE_R), xlsxReadSheetHolder.setColumnIndex(PositionUtils.getCol(attributes.getValue(ExcelXmlConstants.ATTRIBUTE_R),
xlsxReadSheetHolder.getColumnIndex())); xlsxReadSheetHolder.getColumnIndex()));
// t="s" ,it's means String // t="s" ,it means String
// t="str" ,it's means String,but does not need to be read in the 'sharedStrings.xml' // t="str" ,it means String,but does not need to be read in the 'sharedStrings.xml'
// t="inlineStr" ,it's means String // t="inlineStr" ,it means String
// t="b" ,it's means Boolean // t="b" ,it means Boolean
// t="e" ,it's means Error // t="e" ,it means Error
// t="n" ,it's means Number // t="n" ,it means Number
// t is null ,it's means Empty or Number // t is null ,it means Empty or Number
CellDataTypeEnum type = CellDataTypeEnum.buildFromCellType(attributes.getValue(ExcelXmlConstants.ATTRIBUTE_T)); CellDataTypeEnum type = CellDataTypeEnum.buildFromCellType(attributes.getValue(ExcelXmlConstants.ATTRIBUTE_T));
xlsxReadSheetHolder.setTempCellData(new ReadCellData<>(type)); xlsxReadSheetHolder.setTempCellData(new ReadCellData<>(type));
xlsxReadSheetHolder.setTempData(new StringBuilder()); xlsxReadSheetHolder.setTempData(new StringBuilder());

Loading…
Cancel
Save