123
This commit is contained in:
@@ -114,7 +114,11 @@ public class HomeManager {
|
|||||||
List<AnchorListVo> result = vos.subList(startIndex, endIndex);
|
List<AnchorListVo> result = vos.subList(startIndex, endIndex);
|
||||||
if(anchorListQueryTypeEnum == AnchorListQueryTypeEnum.DEFAULT && pageNum == 1){
|
if(anchorListQueryTypeEnum == AnchorListQueryTypeEnum.DEFAULT && pageNum == 1){
|
||||||
List<AnchorListVo> list = getAnchorTopList();
|
List<AnchorListVo> list = getAnchorTopList();
|
||||||
result.addAll(0, list);
|
if(CollectionUtils.isNotEmpty(list)){
|
||||||
|
List<Long> topUserIds = list.stream().map(AnchorListVo::getUserId).collect(Collectors.toList());
|
||||||
|
result = result.stream().filter(anchorListVo -> !topUserIds.contains(anchorListVo.getUserId())).collect(Collectors.toList());
|
||||||
|
result.addAll(0, list);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user