Browse Source

提交修改日期结构的实体

zk 10 months ago
parent
commit
9a7f764825

+ 1 - 1
src/main/java/com/ghjg/pd/entity/GpsinfoRealtime.java

@@ -20,7 +20,7 @@ import lombok.experimental.Accessors;
 @Data
 @EqualsAndHashCode(callSuper = true)
 @Accessors(chain = true)
-@TableName("GHJG_PD.nhdt.GPSINFO_REALTIME")
+@TableName("nhdt.GPSINFO_REALTIME")
 public class GpsinfoRealtime extends BaseEntity {
 
     private static final long serialVersionUID = 1L;

+ 9 - 2
src/main/java/com/ghjg/pd/entity/ass/AssPageDepartment.java

@@ -2,7 +2,10 @@ package com.ghjg.pd.entity.ass;
 
 import com.baomidou.mybatisplus.annotation.TableName;
 import java.time.LocalDateTime;
+import java.util.Date;
+
 import com.baomidou.mybatisplus.annotation.TableField;
+import com.fasterxml.jackson.annotation.JsonFormat;
 import com.ghjg.pd.entity.BaseEntity;
 import lombok.Data;
 import lombok.EqualsAndHashCode;
@@ -39,11 +42,15 @@ public class AssPageDepartment extends BaseEntity {
     @TableField("PAGE_ID")
     private Long pageId;
 
+
     @TableField("CREATE_TIME")
-    private LocalDateTime createTime;
+    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
+    private Date createTime;
+
 
     @TableField("UPDATE_TIME")
-    private LocalDateTime updateTime;
+    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
+    private Date updateTime;
 
     @TableField("DELETE_FLAG")
     private Integer deleteFlag;