|
@@ -225,14 +225,21 @@ public class RecommendService {
|
|
|
if (!"prod".equals(env) || param.isExcludeLog()) {
|
|
|
return;
|
|
|
}
|
|
|
- PublishContentSortLog log = new PublishContentSortLog();
|
|
|
- log.setGhId(param.getGhId());
|
|
|
- log.setAccountName(param.getAccountName());
|
|
|
- log.setStrategy(param.getStrategy());
|
|
|
- List<String> publishContentIds = rankResult.getContents().stream().map(Content::getId).collect(Collectors.toList());
|
|
|
- log.setPublishContentId(JSONObject.toJSONString(publishContentIds));
|
|
|
- log.setCreateTimestamp(System.currentTimeMillis());
|
|
|
- publishContentSortLogRepository.save(log);
|
|
|
+ switch (param.getScene()) {
|
|
|
+ case FWH_COLD_START:
|
|
|
+ break;
|
|
|
+ default:
|
|
|
+ PublishContentSortLog log = new PublishContentSortLog();
|
|
|
+ log.setGhId(param.getGhId());
|
|
|
+ log.setAccountName(param.getAccountName());
|
|
|
+ log.setStrategy(param.getStrategy());
|
|
|
+ List<String> publishContentIds = rankResult.getContents().stream().map(Content::getId).collect(Collectors.toList());
|
|
|
+ log.setPublishContentId(JSONObject.toJSONString(publishContentIds));
|
|
|
+ log.setCreateTimestamp(System.currentTimeMillis());
|
|
|
+ publishContentSortLogRepository.save(log);
|
|
|
+ break;
|
|
|
+
|
|
|
+ }
|
|
|
List<PublishSortLog> publishSortLogSaveList = new ArrayList<>();
|
|
|
for (int i = 1; i < rankResult.getContents().size() + 1; i++) {
|
|
|
Content content = rankResult.getContents().get(i - 1);
|