diff --git a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/user/query/UserCpPairUserProfileQryExe.java b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/user/query/UserCpPairUserProfileQryExe.java index e3c439a6..4da1e947 100644 --- a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/user/query/UserCpPairUserProfileQryExe.java +++ b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/user/query/UserCpPairUserProfileQryExe.java @@ -45,12 +45,12 @@ public class UserCpPairUserProfileQryExe { ResponseAssert.notNull(UserErrorCode.USER_INFO_NOT_FOUND, meUser); List cpList = cpRelationshipCacheService.getUserCpList(cmd.requiredReqUserId()); - if (cpList.isEmpty()) { + List dismissing = cpRelationshipService.getDismissingByUserId(cmd.requiredReqUserId()); + + if (cpList.isEmpty() && dismissing.isEmpty()) { return Collections.emptyList(); } - List dismissing = cpRelationshipService.getDismissingByUserId(cmd.requiredReqUserId()); - UserProfileDTO meUserProfileDTO = userProfileAppConvertor.toSimpleUserProfileDTO(meUser); // 已在 cpList 中的 cpUserId(NORMAL),避免 dismissing 重复追加