diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/domain/place/TdPlaceRegist.java b/ruoyi-system/src/main/java/com/ruoyi/system/domain/place/TdPlaceRegist.java index 641246b..4c2ad5b 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/domain/place/TdPlaceRegist.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/domain/place/TdPlaceRegist.java @@ -7,6 +7,7 @@ import com.baomidou.mybatisplus.annotation.TableName; import java.io.Serializable; import java.util.Date; +import com.fasterxml.jackson.annotation.JsonFormat; import com.ruoyi.common.core.domain.BaseEntity; import lombok.Data; import lombok.EqualsAndHashCode; @@ -45,6 +46,7 @@ public class TdPlaceRegist extends BaseEntity { /** * 登记日期 */ + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private Date registTime; /** @@ -55,11 +57,13 @@ public class TdPlaceRegist extends BaseEntity { /** * 进入时间 */ + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private Date accessTime; /** * 离开时间 */ + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private Date leaveTime; /** diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/domain/tdcase/TdCase.java b/ruoyi-system/src/main/java/com/ruoyi/system/domain/tdcase/TdCase.java index cfea97e..f131a0a 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/domain/tdcase/TdCase.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/domain/tdcase/TdCase.java @@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; import java.util.Date; +import com.fasterxml.jackson.annotation.JsonFormat; import com.ruoyi.common.core.domain.BaseEntity; import lombok.Data; import lombok.EqualsAndHashCode; @@ -47,6 +48,7 @@ public class TdCase extends BaseEntity { /** * 案件发生时间 */ + @JsonFormat(pattern = "yyyy-MM-dd") private Date caseTime; /**