anderx vor 4 Jahren
Ursprung
Commit
10ce06b4f5
1 geänderte Dateien mit 1 neuen und 2 gelöschten Zeilen
  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)) {