分手中数据处理
(cherry picked from commit 16a33b1ef5551eaeeba349addd896ed64b54d539)
This commit is contained in:
parent
b47e36fcb2
commit
33831a4535
@ -45,12 +45,12 @@ public class UserCpPairUserProfileQryExe {
|
|||||||
ResponseAssert.notNull(UserErrorCode.USER_INFO_NOT_FOUND, meUser);
|
ResponseAssert.notNull(UserErrorCode.USER_INFO_NOT_FOUND, meUser);
|
||||||
|
|
||||||
List<CpSimpleUserProfileCO> cpList = cpRelationshipCacheService.getUserCpList(cmd.requiredReqUserId());
|
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();
|
return Collections.emptyList();
|
||||||
}
|
}
|
||||||
|
|
||||||
List<CpRelationship> dismissing = cpRelationshipService.getDismissingByUserId(cmd.requiredReqUserId());
|
|
||||||
|
|
||||||
UserProfileDTO meUserProfileDTO = userProfileAppConvertor.toSimpleUserProfileDTO(meUser);
|
UserProfileDTO meUserProfileDTO = userProfileAppConvertor.toSimpleUserProfileDTO(meUser);
|
||||||
|
|
||||||
// 已在 cpList 中的 cpUserId(NORMAL),避免 dismissing 重复追加
|
// 已在 cpList 中的 cpUserId(NORMAL),避免 dismissing 重复追加
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user