|
@@ -145,16 +145,15 @@ public class RankService implements InitializingBean {
|
|
|
Integer sourceType = getStrategyPoolSourceType(strategy, index);
|
|
|
Integer videoSourceType = PublishPlanInputSourceTypesEnum.longArticleVideoPoolSource.getVal();
|
|
|
List<Content> videoPool = pool.stream().filter(o -> Objects.equals(o.getSourceType(), videoSourceType)).collect(Collectors.toList());
|
|
|
- List<Content> otherPool = pool.stream().filter(o ->!Objects.equals(o.getSourceType(), videoSourceType)).collect(Collectors.toList());
|
|
|
- if (Objects.nonNull(sourceType) && sourceType.equals(videoSourceType)) {
|
|
|
+ List<Content> otherPool = pool.stream().filter(o -> !Objects.equals(o.getSourceType(), videoSourceType)).collect(Collectors.toList());
|
|
|
+ if (Objects.equals(sourceType, PublishPlanInputSourceTypesEnum.all.getVal())) {
|
|
|
+ return pool;
|
|
|
+ } else if (sourceType.equals(videoSourceType)) {
|
|
|
if (CollectionUtils.isNotEmpty(videoPool)) {
|
|
|
return videoPool;
|
|
|
- } else {
|
|
|
- return otherPool;
|
|
|
}
|
|
|
- } else {
|
|
|
- return otherPool;
|
|
|
}
|
|
|
+ return otherPool;
|
|
|
}
|
|
|
|
|
|
public static void commonAdd38Content(RankParam param, List<Content> result, String[] contentPools,
|