Commit fcc2bf92d1ebbf3b062ff28e089593a412690196
1 parent
c20c61ef
Exists in
master
优化excel-util
Showing
2 changed files
with
3 additions
and
1 deletions
Show diff stats
build.gradle
src/main/java/com/taover/util/UtilExcel.java
... | ... | @@ -295,6 +295,8 @@ public class UtilExcel { |
295 | 295 | dataRow.add(df.format(cell.getNumericCellValue())); |
296 | 296 | }else if(cell.getCellType() == HSSFCell.CELL_TYPE_BOOLEAN){ |
297 | 297 | dataRow.add(Boolean.valueOf(cell.getBooleanCellValue())); |
298 | + }else if(cell.getCellType() == HSSFCell.CELL_TYPE_FORMULA){ | |
299 | + dataRow.add(cell.getNumericCellValue()); | |
298 | 300 | }else{ |
299 | 301 | dataRow.add(cell.getStringCellValue()); |
300 | 302 | } | ... | ... |