分手接口 类型报错处理

This commit is contained in:
tianfeng 2025-12-11 11:56:23 +08:00
parent d1aa6b7586
commit 5a7d245603

View File

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