|
|
|
@ -37,7 +37,7 @@ public class ObjectUtils {
|
|
|
|
|
DateTimeToMap dateTimeToMap = field.getAnnotation(DateTimeToMap.class); |
|
|
|
|
LocalDateTime time = (LocalDateTime) value; |
|
|
|
|
if(ObjectUtil.isEmpty(dateTimeToMap)) { |
|
|
|
|
result.put(field.getName(),time.format(DateUtil.TIME_FORMATTER)); |
|
|
|
|
result.put(field.getName(),time.format(DateUtil.DATETIME_FORMATTER)); |
|
|
|
|
} |
|
|
|
|
else { |
|
|
|
|
result.putAll(LocalDateConvertMap(time,dateTimeToMap.prefix(),dateTimeToMap.split())); |
|
|
|
|