diff --git a/jero-boot/jero-boot-single-startup/src/main/resources/jero/code-template-online/common/blob.ftl b/jero-boot/jero-boot-single-startup/src/main/resources/jero/code-template-online/common/blob.ftl index b172b52b..fd63b325 100644 --- a/jero-boot/jero-boot-single-startup/src/main/resources/jero/code-template-online/common/blob.ftl +++ b/jero-boot/jero-boot-single-startup/src/main/resources/jero/code-template-online/common/blob.ftl @@ -28,14 +28,5 @@ } <#else> @ApiModelProperty(value = "${po.filedComment}") - <#if po.fieldDbType=="Date"> - <#if po.classType=="date"> - private java.time.LocalDate ${po.fieldName}; - <#else> - private java.time.LocalDateTime ${po.fieldName}; - - <#else> - private ${po.fieldType} ${po.fieldName}; - - + private ${po.fieldType} ${po.fieldName}; \ No newline at end of file diff --git a/jero-boot/jero-boot-single-startup/src/main/resources/jero/code-template-online/default/one/java/${bussiPackage}/${entityPackage}/entity/${entityName}.javai b/jero-boot/jero-boot-single-startup/src/main/resources/jero/code-template-online/default/one/java/${bussiPackage}/${entityPackage}/entity/${entityName}.javai index afca4691..d9d06a4c 100644 --- a/jero-boot/jero-boot-single-startup/src/main/resources/jero/code-template-online/default/one/java/${bussiPackage}/${entityPackage}/entity/${entityName}.javai +++ b/jero-boot/jero-boot-single-startup/src/main/resources/jero/code-template-online/default/one/java/${bussiPackage}/${entityPackage}/entity/${entityName}.javai @@ -57,14 +57,12 @@ public class ${entityName} implements Serializable { @Excel(name = "${po.filedComment}", width = 15, format = "yyyy-MM-dd"${list_field_dictCode}) @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") - @JsonSerialize(using = com.fasterxml.jackson.datatype.jsr310.ser.LocalDateSerializer.class) @DateTimeFormat(pattern="yyyy-MM-dd") <#else> <#if !excel_ignore_arr?seq_contains("${po.fieldName}")> @Excel(name = "${po.filedComment}", width = 20, format = "yyyy-MM-dd HH:mm:ss"${list_field_dictCode}) @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") - @JsonSerialize(using = com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer.class) @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") <#else>