lyhzzz 11 months ago
parent
commit
54c695eca9
1 changed files with 0 additions and 8 deletions
  1. 0 8
      src/main/java/com/fdkankan/manage/util/ExcelUtil.java

+ 0 - 8
src/main/java/com/fdkankan/manage/util/ExcelUtil.java

@@ -34,14 +34,6 @@ public class ExcelUtil {
             //转换为List数组
             for (int cellNum=0;cellNum<= row.getLastCellNum();cellNum++){
                 Cell cell = row.getCell(cellNum);
-                if (cell != null && cell.getCellTypeEnum() != CellType.STRING && HSSFDateUtil.isCellDateFormatted(cell))
-                {
-                    SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
-                    Date date = HSSFDateUtil.getJavaDate(cell.getNumericCellValue());
-                    String value = sdf.format(date);
-                    map.put(cellNum,value);
-                    continue;
-                }
                 if(cell != null){
                     DataFormatter dataFormatter = new DataFormatter();
                     String cellValue = dataFormatter.formatCellValue(cell);