From 625fcb48cc1df43214287605f879fabe93a42fbd Mon Sep 17 00:00:00 2001 From: wangxy <1356089412@qq.com> Date: Wed, 14 Aug 2024 10:40:37 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=9C=BA=E6=89=80=E5=87=BA=E5=85=A5?= =?UTF-8?q?=E7=99=BB=E8=AE=B0=E6=8E=A5=E5=8F=A3=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/ruoyi/system/domain/place/TdPlaceRegist.java | 4 ++++ .../src/main/java/com/ruoyi/system/domain/tdcase/TdCase.java | 2 ++ 2 files changed, 6 insertions(+) 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; /**