feat:框架完善,增加完整的支持

This commit is contained in:
wangyu 2021-09-28 22:51:08 +08:00
parent 8f4544603c
commit db9496943f
1 changed files with 3 additions and 0 deletions

View File

@ -259,6 +259,9 @@ public class BeanProperty {
property.prop("type", "month"); property.prop("type", "month");
} else if (pattern.length() == 10) { } else if (pattern.length() == 10) {
property.prop("type", "date"); 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) { } else if (pattern.length() > 16) {
property.prop("format", "YYYY-MM-DD HH:mm:ss"); property.prop("format", "YYYY-MM-DD HH:mm:ss");
} }