|
|
@@ -183,8 +183,8 @@ public class ThirdPartyPushMessageStrategyV1 implements ReplyStrategyService {
|
|
|
.filter(x -> x.getGhId().equals(bucketDataParam.getGhId()))
|
|
|
.collect(Collectors.toList());
|
|
|
if (CollectionUtils.isEmpty(collect)) {
|
|
|
- log.error("ThirdPartyPushMessageStrategyV1 insertSmallData 算法排序数据异常 ,key:" + key +
|
|
|
- ",data:" + JSON.toJSONString(smallDataCgiReplyList) + ",ghId:" + bucketDataParam.getGhId());
|
|
|
+ log.info("ThirdPartyPushMessageStrategyV1 insertSmallData 数据未变更跳过,key:{},ghId:{},data:{}",
|
|
|
+ key, bucketDataParam.getGhId(), JSON.toJSONString(smallDataCgiReplyList));
|
|
|
continue;
|
|
|
}
|
|
|
CgiReplyBucketDataExample cgiReplyBucketDataExample = new CgiReplyBucketDataExample();
|
|
|
@@ -338,9 +338,10 @@ public class ThirdPartyPushMessageStrategyV1 implements ReplyStrategyService {
|
|
|
existCgiReplyBucketDataList.addAll(list);
|
|
|
}
|
|
|
}
|
|
|
- //if (existNum == bucketDataParam.getVideos().size()) {
|
|
|
- // continue;
|
|
|
- //}
|
|
|
+ if (existCgiReplyBucketDataList.size() == bucketDataParam.getMiniPageDatas().size()) {
|
|
|
+ // 当前与历史条数一致且页面路径一致,不更新
|
|
|
+ continue;
|
|
|
+ }
|
|
|
}
|
|
|
Map<Long, VideoDetail> videoDetailMap = touLiuHttpClient.getVideoDetailRequest(bucketDataParam.getVideos());
|
|
|
for (int i = 0; i < bucketDataParam.getMiniPageDatas().size(); i++) {
|
|
|
@@ -386,9 +387,10 @@ public class ThirdPartyPushMessageStrategyV1 implements ReplyStrategyService {
|
|
|
existCgiReplyBucketDataList.addAll(list);
|
|
|
}
|
|
|
}
|
|
|
- //if (existNum == bucketDataParam.getVideos().size()) {
|
|
|
- // continue;
|
|
|
- //}
|
|
|
+ if (existCgiReplyBucketDataList.size() == bucketDataParam.getVideos().size()) {
|
|
|
+ // 当前与历史条数一致且视频Id一致,不更新
|
|
|
+ continue;
|
|
|
+ }
|
|
|
}
|
|
|
Map<Long, VideoDetail> videoDetailMap = touLiuHttpClient.getVideoDetailRequest(bucketDataParam.getVideos());
|
|
|
List<ContentPlatformGzhPlanVideo> gzhPlanVideoList = contentPlatformPlanService.getGzhPlanVideoListByCooperateAccountId(bucketDataParam.getGhId());
|