Procházet zdrojové kódy

解析公式CELL_TYPE_FORMULA类型时,直接取单元格的值,而非取公式;

4.1.3.A
曾维嘉 před 6 roky
rodič
revize
51d2b777f2
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. +1
    -1
      easypoi-base/src/main/java/cn/afterturn/easypoi/util/PoiCellUtil.java

+ 1
- 1
easypoi-base/src/main/java/cn/afterturn/easypoi/util/PoiCellUtil.java Zobrazit soubor

@@ -114,7 +114,7 @@ public class PoiCellUtil {

} else if (cell.getCellType() == Cell.CELL_TYPE_FORMULA) {

return cell.getCellFormula();
return cell.getStringCellValue();

} else if (cell.getCellType() == Cell.CELL_TYPE_NUMERIC) {



Načítá se…
Zrušit
Uložit