|
@@ -373,10 +373,12 @@ public class ContentPlatformVideoJob {
|
|
|
if (!videoIdTypeChannelScoreMap.containsKey(type)) {
|
|
if (!videoIdTypeChannelScoreMap.containsKey(type)) {
|
|
|
continue;
|
|
continue;
|
|
|
}
|
|
}
|
|
|
- Map<Long, Double> typeVideoScoreMap = videoIdTypeChannelScoreMap.get(type).getOrDefault("sum", new HashMap<>());
|
|
|
|
|
- Map<Long, Double> channelVideoScoreMap = videoIdTypeChannelScoreMap.get(type).getOrDefault(channel, new HashMap<>());
|
|
|
|
|
|
|
+ Map<Long, Double> typeVideoScoreMap = videoIdTypeChannelScoreMap.getOrDefault(type, new HashMap<>())
|
|
|
|
|
+ .getOrDefault("sum", new HashMap<>());
|
|
|
|
|
+ Map<Long, Double> channelVideoScoreMap = videoIdTypeChannelScoreMap.getOrDefault(type, new HashMap<>())
|
|
|
|
|
+ .getOrDefault(channel, new HashMap<>());
|
|
|
Double platformScore = video.getScore();
|
|
Double platformScore = video.getScore();
|
|
|
- Double channelRate = channelVideoScoreMap.get(video.getVideoId());
|
|
|
|
|
|
|
+ Double channelRate = channel.equals("sum") ? 0 : channelVideoScoreMap.get(video.getVideoId());
|
|
|
Double typeRate = typeVideoScoreMap.get(video.getVideoId());
|
|
Double typeRate = typeVideoScoreMap.get(video.getVideoId());
|
|
|
Double recommendScore = calRecommendScore(platformScore, channelRate, typeRate);
|
|
Double recommendScore = calRecommendScore(platformScore, channelRate, typeRate);
|
|
|
ContentPlatformVideoDataStatAgg agg = new ContentPlatformVideoDataStatAgg();
|
|
ContentPlatformVideoDataStatAgg agg = new ContentPlatformVideoDataStatAgg();
|