|
@@ -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);
|