From adbebc144ccf203317c48be007184842bc563535 Mon Sep 17 00:00:00 2001 From: LSF <695944503@qq.com> Date: Tue, 16 Jan 2024 10:56:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BB=A3=E7=A0=81=E7=94=9F?= =?UTF-8?q?=E6=88=90date=E7=B1=BB=E5=9E=8B=E8=AF=B7=E6=B1=82=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E6=97=B6=EF=BC=8C=E7=B1=BB=E5=9E=8B=E8=BD=AC=E6=8D=A2?= =?UTF-8?q?=E6=8A=A5=E9=94=99=E9=97=AE=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/template/java/Query.java.ftl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/maku-boot-module/maku-module-generator/src/main/resources/template/java/Query.java.ftl b/maku-boot-module/maku-module-generator/src/main/resources/template/java/Query.java.ftl index 57d53a5..bdb205b 100644 --- a/maku-boot-module/maku-module-generator/src/main/resources/template/java/Query.java.ftl +++ b/maku-boot-module/maku-module-generator/src/main/resources/template/java/Query.java.ftl @@ -4,6 +4,7 @@ import io.swagger.v3.oas.annotations.media.Schema; import lombok.Data; import lombok.EqualsAndHashCode; import ${package}.framework.common.query.Query; +import org.springframework.format.annotation.DateTimeFormat; <#list importList as i> import ${i!}; @@ -23,6 +24,9 @@ public class ${ClassName}Query extends Query { <#if field.fieldComment!?length gt 0> @Schema(description = "${field.fieldComment}") + <#if field.attrType == 'Date'> + @DateTimeFormat(pattern = DateUtils.DATE_TIME_PATTERN) + private ${field.attrType} ${field.attrName}; -- Gitee