|
|
|
@ -70,12 +70,12 @@ public class #(data.model.tableName)Model extends ApiWrapper {
|
|
|
|
|
#end
|
|
|
|
|
#end
|
|
|
|
|
### 日期处理
|
|
|
|
|
#if(column.javaType == "Date" && column.showType == "3")
|
|
|
|
|
@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")
|
|
|
|
|
#if(column.javaType == "Date" && 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
|
|
|
|
|
private #(column.javaType) #(column.fieldName);
|
|
|
|
|
|
|
|
|
|