修复代码生成器 生成日期类型BUG

v1.4.1
Parker 4 years ago
parent 8741985acf
commit 3ce3752ad8

@ -70,12 +70,12 @@ public class #(data.model.tableName)Model extends ApiWrapper {
#end #end
#end #end
### ###
#if(column.javaType == "Date" && column.showType == "3") #if(column.javaType == "Date" && column.showType == "4")
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
#else if(column.javaType == "Date" && column.showType == "4")
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd") @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern = "yyyy-MM-dd") @DateTimeFormat(pattern = "yyyy-MM-dd")
#else
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
#end #end
private #(column.javaType) #(column.fieldName); private #(column.javaType) #(column.fieldName);

Loading…
Cancel
Save