|
@@ -59,12 +59,17 @@ public class RankProcessorBoost {
|
|
|
}
|
|
|
|
|
|
public static void boostByMergeCate(List<Video> rovList, Map<String, List<Map<String, String>>> rulesMap) {
|
|
|
+
|
|
|
+ if (CollectionUtils.isEmpty(rovList) || MapUtils.isEmpty(rulesMap)){
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
for (Video video : rovList) {
|
|
|
if (CollectionUtils.isEmpty(video.getMergeCateList())) {
|
|
|
continue;
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+
|
|
|
for (String mergeCate : video.getMergeCateList()) {
|
|
|
double reduceCoefficient = RankProcessorBoost.parseReduceCoefficient(mergeCate, rulesMap);
|
|
|
double originScore = video.getScore();
|