代码生成器日期处理BUG

v1.4.1
Parker 5 years ago
parent 6811290be3
commit 71f7ff5954

@ -69,13 +69,15 @@ public class #(data.model.tableName)Model extends ApiWrapper {
#end
#end
###
#if(column.javaType == "Date" && column.showType == "4")
#if(column.javaType == "Date"
#if(column.showType == "4")
@JsonFormat(timezone = "GMT+8", 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);
#end

Loading…
Cancel
Save