|
@@ -284,7 +284,7 @@ public class ExcelUtil<T>
|
|
284
|
String dateFormat = field.getAnnotation(Excel.class).dateFormat();
|
284
|
String dateFormat = field.getAnnotation(Excel.class).dateFormat();
|
|
285
|
if (StringUtils.isNotEmpty(dateFormat))
|
285
|
if (StringUtils.isNotEmpty(dateFormat))
|
|
286
|
{
|
286
|
{
|
|
287
|
- val = parseDateToStr(dateFormat, (Date) val);
|
|
|
|
|
|
287
|
+ val = parseDateToStr(dateFormat, val);
|
|
288
|
}
|
288
|
}
|
|
289
|
else
|
289
|
else
|
|
290
|
{
|
290
|
{
|
|
@@ -703,7 +703,7 @@ public class ExcelUtil<T>
|
|
703
|
String separator = attr.separator();
|
703
|
String separator = attr.separator();
|
|
704
|
if (StringUtils.isNotEmpty(dateFormat) && StringUtils.isNotNull(value))
|
704
|
if (StringUtils.isNotEmpty(dateFormat) && StringUtils.isNotNull(value))
|
|
705
|
{
|
705
|
{
|
|
706
|
- cell.setCellValue(parseDateToStr(dateFormat, (Date) value));
|
|
|
|
|
|
706
|
+ cell.setCellValue(parseDateToStr(dateFormat, value));
|
|
707
|
}
|
707
|
}
|
|
708
|
else if (StringUtils.isNotEmpty(readConverterExp) && StringUtils.isNotNull(value))
|
708
|
else if (StringUtils.isNotEmpty(readConverterExp) && StringUtils.isNotNull(value))
|
|
709
|
{
|
709
|
{
|