|
|
@@ -540,7 +540,12 @@ public class ContentPlatformVideoJob {
|
|
|
String strategy = "recommend";
|
|
|
for (String channel : channelList) {
|
|
|
ContentPlatformAccount account = accountMap.get(channel);
|
|
|
- List<ContentPlatformVideoAccountRel> accoutnVideoAccountRelList = videoAccountRelMap.getOrDefault(account.getId(), new ArrayList<>());
|
|
|
+ List<ContentPlatformVideoAccountRel> accoutnVideoAccountRelList;
|
|
|
+ if (Objects.nonNull(account)) {
|
|
|
+ accoutnVideoAccountRelList = videoAccountRelMap.getOrDefault(account.getId(), new ArrayList<>());
|
|
|
+ } else {
|
|
|
+ accoutnVideoAccountRelList = new ArrayList<>();
|
|
|
+ }
|
|
|
Map<Long, Double> videoSimScoreMap = accoutnVideoAccountRelList.stream().collect(
|
|
|
Collectors.toMap(ContentPlatformVideoAccountRel::getVideoId, ContentPlatformVideoAccountRel::getSimScore));
|
|
|
for (String type : typeList) {
|