|
|
@@ -30,6 +30,7 @@ import java.io.*;
|
|
|
import java.lang.reflect.Field;
|
|
|
import java.math.BigDecimal;
|
|
|
import java.text.DecimalFormat;
|
|
|
+import java.text.SimpleDateFormat;
|
|
|
import java.util.*;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
@@ -1096,9 +1097,12 @@ public class ExcelUtil<T>
|
|
|
if (cell.getCellType() == CellType.NUMERIC || cell.getCellType() == CellType.FORMULA)
|
|
|
{
|
|
|
val = cell.getNumericCellValue();
|
|
|
+ System.out.println(val);
|
|
|
if (DateUtil.isCellDateFormatted(cell))
|
|
|
{
|
|
|
- val = DateUtil.getJavaDate((Double) val); // POI Excel 日期格式转换
|
|
|
+ SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
|
|
|
+ Date date = DateUtil.getJavaDate((Double) val);// POI Excel 日期格式转换
|
|
|
+ val = sdf.format(date);
|
|
|
}
|
|
|
else
|
|
|
{
|