分手中数据处理

(cherry picked from commit 16a33b1ef5551eaeeba349addd896ed64b54d539)
This commit is contained in:
tianfeng 2026-04-29 21:37:14 +08:00
parent b47e36fcb2
commit 33831a4535

View File

@ -45,12 +45,12 @@ public class UserCpPairUserProfileQryExe {
ResponseAssert.notNull(UserErrorCode.USER_INFO_NOT_FOUND, meUser);
List<CpSimpleUserProfileCO> cpList = cpRelationshipCacheService.getUserCpList(cmd.requiredReqUserId());
if (cpList.isEmpty()) {
List<CpRelationship> dismissing = cpRelationshipService.getDismissingByUserId(cmd.requiredReqUserId());
if (cpList.isEmpty() && dismissing.isEmpty()) {
return Collections.emptyList();
}
List<CpRelationship> dismissing = cpRelationshipService.getDismissingByUserId(cmd.requiredReqUserId());
UserProfileDTO meUserProfileDTO = userProfileAppConvertor.toSimpleUserProfileDTO(meUser);
// 已在 cpList 中的 cpUserIdNORMAL避免 dismissing 重复追加