From db9496943ff1dee974b3fa6ec086d5adfafb6e9b Mon Sep 17 00:00:00 2001 From: wangyu <727842003@qq.com> Date: Tue, 28 Sep 2021 22:51:08 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E6=A1=86=E6=9E=B6=E5=AE=8C?= =?UTF-8?q?=E5=96=84=EF=BC=8C=E5=A2=9E=E5=8A=A0=E5=AE=8C=E6=95=B4=E7=9A=84?= =?UTF-8?q?=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/flyfish/framework/beans/meta/BeanProperty.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/flyfish-web/src/main/java/com/flyfish/framework/beans/meta/BeanProperty.java b/flyfish-web/src/main/java/com/flyfish/framework/beans/meta/BeanProperty.java index c19544c..7dc548a 100644 --- a/flyfish-web/src/main/java/com/flyfish/framework/beans/meta/BeanProperty.java +++ b/flyfish-web/src/main/java/com/flyfish/framework/beans/meta/BeanProperty.java @@ -259,6 +259,9 @@ public class BeanProperty { property.prop("type", "month"); } else if (pattern.length() == 10) { property.prop("type", "date"); + } else if (pattern.length() == 16) { + property.prop("type", "datetime"); + property.prop("format", "YYYY-MM-DD HH:mm"); } else if (pattern.length() > 16) { property.prop("format", "YYYY-MM-DD HH:mm:ss"); }