From b98d91a2fbf08bc7e3b591f5b3a5b2dbf2576506 Mon Sep 17 00:00:00 2001 From: hy001 Date: Sat, 23 May 2026 21:14:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=97=B6=E9=97=B4=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../user/query/UserCpPairUserProfileQryExeTest.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/rc-service/rc-service-other/other-application/src/test/java/com/red/circle/other/app/command/user/query/UserCpPairUserProfileQryExeTest.java b/rc-service/rc-service-other/other-application/src/test/java/com/red/circle/other/app/command/user/query/UserCpPairUserProfileQryExeTest.java index a942c644..09f6658a 100644 --- a/rc-service/rc-service-other/other-application/src/test/java/com/red/circle/other/app/command/user/query/UserCpPairUserProfileQryExeTest.java +++ b/rc-service/rc-service-other/other-application/src/test/java/com/red/circle/other/app/command/user/query/UserCpPairUserProfileQryExeTest.java @@ -18,7 +18,7 @@ import com.red.circle.other.infra.database.rds.service.user.user.CpValueService; import com.red.circle.other.infra.enums.user.user.CpRelationshipStatus; import com.red.circle.other.inner.model.dto.user.UserProfileDTO; import java.math.BigDecimal; -import java.util.Date; +import java.sql.Timestamp; import java.util.List; import org.junit.jupiter.api.Test; @@ -93,13 +93,14 @@ class UserCpPairUserProfileQryExeTest { } private static CpRelationship relationship(Long userId, Long cpUserId, Long cpValId) { - return new CpRelationship() + CpRelationship relationship = new CpRelationship() .setUserId(userId) .setCpUserId(cpUserId) .setCpValId(cpValId) .setRelationType("BROTHER") - .setStatus(CpRelationshipStatus.NORMAL.name()) - .setCreateTime(new Date(System.currentTimeMillis() - 86_400_000L)); + .setStatus(CpRelationshipStatus.NORMAL.name()); + relationship.setCreateTime(new Timestamp(System.currentTimeMillis() - 86_400_000L)); + return relationship; } } }