空cp处理
This commit is contained in:
parent
81c271ff0c
commit
53b8aa2506
@ -16,6 +16,7 @@ import com.red.circle.other.inner.asserts.user.UserErrorCode;
|
|||||||
import com.red.circle.other.inner.model.dto.user.UserProfileDTO;
|
import com.red.circle.other.inner.model.dto.user.UserProfileDTO;
|
||||||
|
|
||||||
import java.time.ZoneId;
|
import java.time.ZoneId;
|
||||||
|
import java.util.Collections;
|
||||||
import java.util.Comparator;
|
import java.util.Comparator;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
@ -48,7 +49,7 @@ public class UserCpPairUserProfileQryExe {
|
|||||||
List<CpRelationship> dismissing = cpRelationshipService.getDismissingByUserId(cmd.requiredReqUserId());
|
List<CpRelationship> dismissing = cpRelationshipService.getDismissingByUserId(cmd.requiredReqUserId());
|
||||||
cpRelationshipList.addAll(dismissing);
|
cpRelationshipList.addAll(dismissing);
|
||||||
if (cpRelationshipList.isEmpty()) {
|
if (cpRelationshipList.isEmpty()) {
|
||||||
return List.of(new CpPairUserProfileCO());
|
return Collections.emptyList();
|
||||||
}
|
}
|
||||||
|
|
||||||
return cpRelationshipList.stream()
|
return cpRelationshipList.stream()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user