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))