소스 검색

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

4.1.3.A
曾维嘉 6 년 전
부모
커밋
51d2b777f2
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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 파일 보기

@@ -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) {



불러오는 중...
취소
저장