|
|
@@ -38,6 +38,7 @@ import com.tzld.piaoquan.growth.common.utils.MessageUtil;
|
|
|
import com.tzld.piaoquan.growth.common.utils.page.Page;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.commons.collections4.CollectionUtils;
|
|
|
+import org.apache.commons.collections4.MapUtils;
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
@@ -164,6 +165,13 @@ public class ContentPlatformPlanServiceImpl implements ContentPlatformPlanServic
|
|
|
planItemVO.setTitle(titleList);
|
|
|
List<GzhPlanVideoContentItemVO> videoVOList = new ArrayList<>();
|
|
|
Map<Long, CgiReplyBucketData> bucketDataMapByGhId = bucketDataMap.get(gzhAccount.getGhId());
|
|
|
+ if (MapUtils.isEmpty(bucketDataMapByGhId)) {
|
|
|
+ BucketDataParam bucketDataParam = new BucketDataParam();
|
|
|
+ bucketDataParam.setGhId(gzhAccount.getGhId());
|
|
|
+ cgiReplyService.getRgiReplyData(bucketDataParam);
|
|
|
+ List<CgiReplyBucketData> bucketDatas = cgiReplyService.getCgiReplyBucketDataListByGhId(gzhAccount.getGhId(), "manual");
|
|
|
+ bucketDataMapByGhId = bucketDatas.stream().collect(Collectors.toMap(CgiReplyBucketData::getMiniVideoId, Function.identity(), (a, b) -> b));
|
|
|
+ }
|
|
|
for (ContentPlatformGzhPlanVideo video : videoListByPlanId) {
|
|
|
GzhPlanVideoContentItemVO videoItemVO = new GzhPlanVideoContentItemVO();
|
|
|
videoItemVO.setVideoId(video.getVideoId());
|