From 27fe96a76e6d15d7dbf7693c069a78a58b9f0203 Mon Sep 17 00:00:00 2001 From: tianfeng <769204422@qq.com> Date: Tue, 30 Dec 2025 14:38:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=B6=E6=97=8F=E5=8A=A8=E6=80=81=E6=97=A5?= =?UTF-8?q?=E6=9C=9F=E6=98=BE=E7=A4=BA=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../other/app/command/family/FamilyNewsListExe.java | 10 +++------- .../app/dto/clientobject/family/FamilyNewsCO.java | 4 +++- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/family/FamilyNewsListExe.java b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/family/FamilyNewsListExe.java index 01d27d18..b5a6e880 100644 --- a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/family/FamilyNewsListExe.java +++ b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/family/FamilyNewsListExe.java @@ -3,17 +3,13 @@ package com.red.circle.other.app.command.family; import com.red.circle.framework.dto.PageResult; import com.red.circle.other.app.dto.clientobject.family.FamilyNewsCO; import com.red.circle.other.app.dto.cmd.family.FamilyNewsListCmd; -import com.red.circle.other.infra.database.rds.entity.family.FamilyMemberInfo; import com.red.circle.other.infra.database.rds.entity.family.FamilyNews; -import com.red.circle.other.infra.database.rds.service.family.FamilyMemberInfoService; import com.red.circle.other.infra.database.rds.service.family.FamilyNewsService; +import com.red.circle.other.infra.utils.ZonedDateTimeUtils; import com.red.circle.tool.core.collection.CollectionUtils; -import com.red.circle.tool.core.date.TimestampUtils; -import java.text.SimpleDateFormat; -import java.time.LocalDateTime; import java.util.List; -import java.util.Objects; + import lombok.RequiredArgsConstructor; import org.springframework.stereotype.Component; @@ -64,6 +60,6 @@ public class FamilyNewsListExe { .setTargetUserId(news.getTargetUserId()) .setTargetUserName(news.getTargetUserName()) .setContent(news.getContent()) - .setCreateTime(news.getCreateTime().toString()); + .setCreateTime(ZonedDateTimeUtils.toTimestamp(news.getCreateTime())); } } diff --git a/rc-service/rc-service-other/other-client/src/main/java/com/red/circle/other/app/dto/clientobject/family/FamilyNewsCO.java b/rc-service/rc-service-other/other-client/src/main/java/com/red/circle/other/app/dto/clientobject/family/FamilyNewsCO.java index 6a4da5ae..844faf9d 100644 --- a/rc-service/rc-service-other/other-client/src/main/java/com/red/circle/other/app/dto/clientobject/family/FamilyNewsCO.java +++ b/rc-service/rc-service-other/other-client/src/main/java/com/red/circle/other/app/dto/clientobject/family/FamilyNewsCO.java @@ -3,6 +3,8 @@ package com.red.circle.other.app.dto.clientobject.family; import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; import java.io.Serializable; +import java.sql.Timestamp; + import lombok.Data; import lombok.experimental.Accessors; @@ -56,6 +58,6 @@ public class FamilyNewsCO implements Serializable { /** * 创建时间 */ - private String createTime; + private Timestamp createTime; }