support LocalTime, See gitee #I1F7CW

This commit is contained in:
oppofind 2020-04-25 23:49:30 +08:00
parent e2ef6cb4c6
commit 9c71e31da9
4 changed files with 5 additions and 1 deletions

View File

@ -59,7 +59,7 @@
<dependency>
<groupId>com.github.shalousun</groupId>
<artifactId>common-util</artifactId>
<version>1.9.3</version>
<version>1.9.4</version>
</dependency>
<!--markdown to html-->
<dependency>

View File

@ -216,6 +216,8 @@ public class DocClassUtil {
return "string";
case "localdate":
return "string";
case "localtime":
return "string";
case "timestamp":
return "string";
case "multipartfile":

View File

@ -88,6 +88,7 @@ public class DocUtil {
fieldValue.put("date-date", DateTimeUtil.dateToStr(new Date(), DateTimeUtil.DATE_FORMAT_DAY));
fieldValue.put("begintime-date", DateTimeUtil.dateToStr(new Date(), DateTimeUtil.DATE_FORMAT_DAY));
fieldValue.put("endtime-date", DateTimeUtil.dateToStr(new Date(), DateTimeUtil.DATE_FORMAT_DAY));
fieldValue.put("time-localtime", DateTimeUtil.long2Str(System.currentTimeMillis(), DateTimeUtil.DATE_FORMAT_SECOND));
fieldValue.put("state-int", String.valueOf(RandomUtil.randomInt(0, 10)));
fieldValue.put("state-integer", String.valueOf(RandomUtil.randomInt(0, 10)));
fieldValue.put("flag-int", String.valueOf(RandomUtil.randomInt(0, 10)));

View File

@ -80,6 +80,7 @@ public class JavaClassValidateUtil {
case "java.sql.timestamp":
case "java.util.date":
case "java.time.localdatetime":
case "java.time.localtime":
case "localdatetime":
case "localdate":
case "java.time.localdate":