空cp处理

This commit is contained in:
tianfeng 2025-12-11 20:59:24 +08:00
parent 81c271ff0c
commit 53b8aa2506

View File

@ -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<CpRelationship> dismissing = cpRelationshipService.getDismissingByUserId(cmd.requiredReqUserId());
cpRelationshipList.addAll(dismissing);
if (cpRelationshipList.isEmpty()) {
return List.of(new CpPairUserProfileCO());
return Collections.emptyList();
}
return cpRelationshipList.stream()