anderx лет назад: 4
Родитель
Сommit
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)) {