|
@@ -313,24 +313,25 @@ public class ContentPlatformPlanServiceImpl implements ContentPlatformPlanServic
|
|
|
}
|
|
|
|
|
|
private void updateCgiReplyBucketData(String ghId, List<GzhPlanVideoContentItemParam> videoList) {
|
|
|
- for (GzhPlanVideoContentItemParam video : videoList) {
|
|
|
- if (!StringUtils.hasText(video.getCustomCover()) && !StringUtils.hasText(video.getCustomTitle())) {
|
|
|
- continue;
|
|
|
- }
|
|
|
- List<CgiReplyBucketData> dataList = cgiReplyService.getCgiReplyBucketDataListByVideoId(video.getVideoId());
|
|
|
- if (CollectionUtils.isEmpty(dataList)) {
|
|
|
- continue;
|
|
|
- }
|
|
|
- String existsCover = dataList.get(0).getCoverUrl();
|
|
|
- if (!existsCover.contains("?")) {
|
|
|
- continue;
|
|
|
- }
|
|
|
- String coverSuffix = existsCover.substring(existsCover.indexOf("?"));
|
|
|
- String cover = video.getCover().substring(0, existsCover.indexOf("?"));
|
|
|
- cgiReplyBucketDataMapperExt.updateBucketDataTitleCoverByGhId(ghId, video.getVideoId(),
|
|
|
- StringUtils.hasText(video.getCustomTitle()) ? video.getCustomTitle() : video.getTitle(),
|
|
|
- StringUtils.hasText(video.getCustomCover()) ? video.getCustomCover() : cover + coverSuffix);
|
|
|
- }
|
|
|
+ cgiReplyBucketDataMapperExt.deleteBucketDataByGhId(ghId);
|
|
|
+// for (GzhPlanVideoContentItemParam video : videoList) {
|
|
|
+// if (!StringUtils.hasText(video.getCustomCover()) && !StringUtils.hasText(video.getCustomTitle())) {
|
|
|
+// continue;
|
|
|
+// }
|
|
|
+// List<CgiReplyBucketData> dataList = cgiReplyService.getCgiReplyBucketDataListByVideoId(video.getVideoId());
|
|
|
+// if (CollectionUtils.isEmpty(dataList)) {
|
|
|
+// continue;
|
|
|
+// }
|
|
|
+// String existsCover = dataList.get(0).getCoverUrl();
|
|
|
+// if (!existsCover.contains("?")) {
|
|
|
+// continue;
|
|
|
+// }
|
|
|
+// String coverSuffix = existsCover.substring(existsCover.indexOf("?"));
|
|
|
+// String cover = video.getCover().substring(0, existsCover.indexOf("?"));
|
|
|
+// cgiReplyBucketDataMapperExt.updateBucketDataTitleCoverByGhId(ghId, video.getVideoId(),
|
|
|
+// StringUtils.hasText(video.getCustomTitle()) ? video.getCustomTitle() : video.getTitle(),
|
|
|
+// StringUtils.hasText(video.getCustomCover()) ? video.getCustomCover() : cover + coverSuffix);
|
|
|
+// }
|
|
|
}
|
|
|
|
|
|
private void saveGzhPlanVideo(GzhPlanSaveParam param, List<Long> videoIds, Long planId,
|