From 5a7d245603bccc33f8203aa48d1aec9429bedd41 Mon Sep 17 00:00:00 2001 From: tianfeng <769204422@qq.com> Date: Thu, 11 Dec 2025 11:56:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E6=89=8B=E6=8E=A5=E5=8F=A3=20?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E6=8A=A5=E9=94=99=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/user/user/impl/CpRelationshipServiceImpl.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/database/rds/service/user/user/impl/CpRelationshipServiceImpl.java b/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/database/rds/service/user/user/impl/CpRelationshipServiceImpl.java index 0a1d6f05..8e8b63b2 100644 --- a/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/database/rds/service/user/user/impl/CpRelationshipServiceImpl.java +++ b/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/database/rds/service/user/user/impl/CpRelationshipServiceImpl.java @@ -10,6 +10,7 @@ import com.red.circle.other.infra.database.rds.entity.user.user.CpRelationship; import com.red.circle.other.infra.database.rds.service.user.user.CpRelationshipService; import com.red.circle.other.infra.enums.user.user.CpRelationshipStatus; import java.math.BigDecimal; +import java.sql.Timestamp; import java.util.Arrays; import java.util.List; import java.util.Objects; @@ -181,10 +182,10 @@ public class CpRelationshipServiceImpl extends @Override public void updateToDismissing(Long userId, Long cpUserId) { - Long now = LocalDateUtils.nowTimestamp().getTime(); + Timestamp now = LocalDateUtils.nowTimestamp(); update() .set(CpRelationship::getStatus, CpRelationshipStatus.DISMISSING.name()) - .set(CpRelationship::getDismissTime, now) + .set(CpRelationship::getDismissTime, now.getTime()) .set(CpRelationship::getUpdateTime, now) .and(where -> where .nested(w -> w.eq(CpRelationship::getUserId, userId).eq(CpRelationship::getCpUserId, cpUserId))