anderx 4 years ago
parent
commit
10ce06b4f5
1 changed files with 1 additions and 2 deletions
  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)) {