From 53b8aa2506191a761de89a9065b21d0e4e8329bd Mon Sep 17 00:00:00 2001 From: tianfeng <769204422@qq.com> Date: Thu, 11 Dec 2025 20:59:24 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A9=BAcp=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../app/command/user/query/UserCpPairUserProfileQryExe.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 225d5a61..9ac910b3 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 @@ -16,6 +16,7 @@ import com.red.circle.other.inner.asserts.user.UserErrorCode; import com.red.circle.other.inner.model.dto.user.UserProfileDTO; import java.time.ZoneId; +import java.util.Collections; import java.util.Comparator; import java.util.List; import java.util.Objects; @@ -48,7 +49,7 @@ public class UserCpPairUserProfileQryExe { List dismissing = cpRelationshipService.getDismissingByUserId(cmd.requiredReqUserId()); cpRelationshipList.addAll(dismissing); if (cpRelationshipList.isEmpty()) { - return List.of(new CpPairUserProfileCO()); + return Collections.emptyList(); } return cpRelationshipList.stream()