anderx 4 년 전
부모
커밋
10ce06b4f5
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      src/main/java/com/goafanti/common/utils/ExcelUtils.java

+ 1 - 2
src/main/java/com/goafanti/common/utils/ExcelUtils.java

@@ -742,8 +742,7 @@ public class ExcelUtils {
     public static String  getCellValue(Cell cell) {
         String value = "";
         if (cell != null) {
-        	CellType cellType=cell.getCellTypeEnum();
-            switch (cellType) {
+            switch (cell.getCellTypeEnum()) {
                 case NUMERIC:  //数字
                     value = cell.getNumericCellValue() + "";
                     if (HSSFDateUtil.isCellDateFormatted(cell)) {