| | |
| | | String dateFormat = field.getAnnotation(Excel.class).dateFormat();
|
| | | if (StringUtils.isNotEmpty(dateFormat))
|
| | | {
|
| | | val = parseDateToStr(dateFormat, (Date) val);
|
| | | val = parseDateToStr(dateFormat, val);
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | | String dictType = attr.dictType();
|
| | | if (StringUtils.isNotEmpty(dateFormat) && StringUtils.isNotNull(value))
|
| | | {
|
| | | cell.setCellValue(parseDateToStr(dateFormat, (Date) value));
|
| | | cell.setCellValue(parseDateToStr(dateFormat, value));
|
| | | }
|
| | | else if (StringUtils.isNotEmpty(readConverterExp) && StringUtils.isNotNull(value))
|
| | | {
|