|
@@ -3,6 +3,7 @@ package com.tzld.piaoquan.api.service.contentplatform.impl;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.google.common.collect.Lists;
|
|
|
import com.tzld.piaoquan.api.common.enums.ExceptionEnum;
|
|
|
+import com.tzld.piaoquan.api.common.enums.contentplatform.ContentPlatformGzhPlanTypeEnum;
|
|
|
import com.tzld.piaoquan.api.common.enums.contentplatform.PublishStageEnum;
|
|
|
import com.tzld.piaoquan.api.common.enums.contentplatform.QwPlanTypeEnum;
|
|
|
import com.tzld.piaoquan.api.common.exception.CommonException;
|
|
@@ -574,6 +575,22 @@ public class ContentPlatformPlanServiceImpl implements ContentPlatformPlanServic
|
|
|
return qwPlanVideoMapper.selectByExample(example);
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public String getGzhChannel(String ghId) {
|
|
|
+ ContentPlatformGzhAccount gzhAccount = cooperateAccountService.getGzhAccount(ghId);
|
|
|
+ if (Objects.nonNull(gzhAccount)) {
|
|
|
+ ContentPlatformAccount account = accountService.getAccountById(gzhAccount.getCreateAccountId());
|
|
|
+ ContentPlatformGzhPlanExample example = new ContentPlatformGzhPlanExample();
|
|
|
+ example.createCriteria().andCreateAccountIdEqualTo(account.getId()).andAccountIdEqualTo(gzhAccount.getId())
|
|
|
+ .andStatusEqualTo(1).andTypeEqualTo(ContentPlatformGzhPlanTypeEnum.FWH_PUSH.getVal());
|
|
|
+ List<ContentPlatformGzhPlan> list = gzhPlanMapper.selectByExample(example);
|
|
|
+ if (CollectionUtils.isNotEmpty(list)) {
|
|
|
+ return account.getChannel();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
@Override
|
|
|
public void gzhPlanImport(List<String> channels) {
|
|
|
List<ContentPlatformAccount> accountList = accountService.getAccountListByChannels(channels);
|