|  | @@ -15,6 +15,7 @@ import com.tzld.piaoquan.api.model.vo.contentplatform.QwPlanItemVO;
 | 
	
		
			
				|  |  |  import com.tzld.piaoquan.api.model.vo.contentplatform.VideoContentItemVO;
 | 
	
		
			
				|  |  |  import com.tzld.piaoquan.api.remote.AigcApiService;
 | 
	
		
			
				|  |  |  import com.tzld.piaoquan.api.remote.ManagerApiService;
 | 
	
		
			
				|  |  | +import com.tzld.piaoquan.api.remote.VlogApiService;
 | 
	
		
			
				|  |  |  import com.tzld.piaoquan.api.service.GhDetailService;
 | 
	
		
			
				|  |  |  import com.tzld.piaoquan.api.service.contentplatform.ContentPlatformCooperateAccountService;
 | 
	
		
			
				|  |  |  import com.tzld.piaoquan.api.service.contentplatform.ContentPlatformPlanService;
 | 
	
	
		
			
				|  | @@ -33,6 +34,7 @@ import lombok.extern.slf4j.Slf4j;
 | 
	
		
			
				|  |  |  import org.apache.commons.collections4.CollectionUtils;
 | 
	
		
			
				|  |  |  import org.springframework.beans.BeanUtils;
 | 
	
		
			
				|  |  |  import org.springframework.beans.factory.annotation.Autowired;
 | 
	
		
			
				|  |  | +import org.springframework.beans.factory.annotation.Value;
 | 
	
		
			
				|  |  |  import org.springframework.stereotype.Service;
 | 
	
		
			
				|  |  |  import org.springframework.util.StringUtils;
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -70,6 +72,11 @@ public class ContentPlatformPlanServiceImpl implements ContentPlatformPlanServic
 | 
	
		
			
				|  |  |      private ManagerApiService managerApiService;
 | 
	
		
			
				|  |  |      @Autowired
 | 
	
		
			
				|  |  |      private MessageAttachmentService messageAttachmentService;
 | 
	
		
			
				|  |  | +    @Autowired
 | 
	
		
			
				|  |  | +    private VlogApiService vlogApiService;
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    @Value("${vlog.share.appType:11}")
 | 
	
		
			
				|  |  | +    private String shareAppType;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @Override
 | 
	
		
			
				|  |  |      public Page<GzhPlanItemVO> gzhPlanList(GzhPlanListParam param) {
 | 
	
	
		
			
				|  | @@ -187,7 +194,7 @@ public class ContentPlatformPlanServiceImpl implements ContentPlatformPlanServic
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |              CgiReplyBucketDataExample example = new CgiReplyBucketDataExample();
 | 
	
		
			
				|  |  |              example.createCriteria().andGhIdEqualTo(ghId).andMiniVideoIdEqualTo(video.getVideoId())
 | 
	
		
			
				|  |  | -                            .andIsDeleteEqualTo(0);
 | 
	
		
			
				|  |  | +                    .andIsDeleteEqualTo(0);
 | 
	
		
			
				|  |  |              List<CgiReplyBucketData> dataList = cgiReplyBucketDataMapper.selectByExample(example);
 | 
	
		
			
				|  |  |              if (CollectionUtils.isEmpty(dataList)) {
 | 
	
		
			
				|  |  |                  continue;
 | 
	
	
		
			
				|  | @@ -388,9 +395,10 @@ public class ContentPlatformPlanServiceImpl implements ContentPlatformPlanServic
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @Override
 | 
	
		
			
				|  |  | -    public void qwPlanSave(QwPlanSaveParam param) {
 | 
	
		
			
				|  |  | +    public List<QwPlanItemVO> qwPlanSave(QwPlanSaveParam param) {
 | 
	
		
			
				|  |  |          ContentPlatformAccount loginUser = LoginUserContext.getUser();
 | 
	
		
			
				|  |  |          Long now = System.currentTimeMillis();
 | 
	
		
			
				|  |  | +        List<ContentPlatformQwPlan> list = new ArrayList<>();
 | 
	
		
			
				|  |  |          for (QwPlanSaveVideoParam videoParam : param.getVideoList()) {
 | 
	
		
			
				|  |  |              ContentPlatformQwPlan qwPlan = new ContentPlatformQwPlan();
 | 
	
		
			
				|  |  |              qwPlan.setType(param.getType());
 | 
	
	
		
			
				|  | @@ -403,9 +411,11 @@ public class ContentPlatformPlanServiceImpl implements ContentPlatformPlanServic
 | 
	
		
			
				|  |  |              qwPlan.setCreateAccountId(loginUser.getId());
 | 
	
		
			
				|  |  |              qwPlan.setCreateTimestamp(now);
 | 
	
		
			
				|  |  |              planMapperExt.insertQwPlanReturnId(qwPlan);
 | 
	
		
			
				|  |  | +            list.add(qwPlan);
 | 
	
		
			
				|  |  |              // 保存视频内容
 | 
	
		
			
				|  |  |              saveQwPlanVideo(videoParam, qwPlan.getId(), loginUser.getId());
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | +        return buildQwPlanItemVOList(list);
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      private void saveQwPlanVideo(QwPlanSaveVideoParam videoParam, Long planId, Long loginAccountId) {
 | 
	
	
		
			
				|  | @@ -420,6 +430,11 @@ public class ContentPlatformPlanServiceImpl implements ContentPlatformPlanServic
 | 
	
		
			
				|  |  |          qwPlanVideoMapper.insertSelective(item);
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +    @Override
 | 
	
		
			
				|  |  | +    public String getSharePic(String pageUrl) {
 | 
	
		
			
				|  |  | +        return vlogApiService.getSharePic(pageUrl, shareAppType);
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |      @Override
 | 
	
		
			
				|  |  |      public List<ContentPlatformGzhPlanVideo> getGzhPlanVideoListByCooperateAccountId(String ghId) {
 | 
	
		
			
				|  |  |          return planMapperExt.getGzhPlanVideoListByCooperateAccountId(ghId);
 |