fix: JsonFormat default timezone.

pull/464/head
alexgaoyh 2023-07-19 16:24:51 +08:00
parent e405becf9a
commit 35f58fdd5e
1 changed files with 4 additions and 4 deletions

View File

@ -40,7 +40,7 @@ public class ${ClassName} extends ${Entity}
#if($parentheseIndex != -1)
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
#elseif($column.javaType == 'Date')
@JsonFormat(pattern = "yyyy-MM-dd")
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
@Excel(name = "${comment}", width = 30, dateFormat = "yyyy-MM-dd")
#else
@Excel(name = "${comment}")