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; } } }