From 3d7c231f69dd6b421177867e4cf28f30dbeb6712 Mon Sep 17 00:00:00 2001 From: haungxing <1203316822@qq.com> Date: Thu, 18 Jan 2024 09:32:45 +0800 Subject: [PATCH] =?UTF-8?q?#=20=E5=AF=B9=E8=B1=A1=E8=BD=AC=E6=8D=A2?= =?UTF-8?q?=E4=B8=BAmap=20=E6=97=B6=E9=97=B4=E6=A0=BC=E5=BC=8F=E8=BD=AC?= =?UTF-8?q?=E6=8D=A2=E9=94=99=E8=AF=AFbug=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ticket/src/main/java/com/hnac/hzims/ticket/utils/ObjectUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hzims-service/ticket/src/main/java/com/hnac/hzims/ticket/utils/ObjectUtils.java b/hzims-service/ticket/src/main/java/com/hnac/hzims/ticket/utils/ObjectUtils.java index e75fffc..c9cec46 100644 --- a/hzims-service/ticket/src/main/java/com/hnac/hzims/ticket/utils/ObjectUtils.java +++ b/hzims-service/ticket/src/main/java/com/hnac/hzims/ticket/utils/ObjectUtils.java @@ -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()));