|
@@ -1147,10 +1147,10 @@ public class AiBytedanceAdvertiserStrategyServiceImpl extends ServiceImpl<AiByte
|
|
//创意标签
|
|
//创意标签
|
|
aiBytedanceAdvertiserStrategy.setCreativeAdKeywords(org.apache.commons.lang3.StringUtils.join(aiBytedanceAdvertiserStrategy.getAdKeywords(), ","));
|
|
aiBytedanceAdvertiserStrategy.setCreativeAdKeywords(org.apache.commons.lang3.StringUtils.join(aiBytedanceAdvertiserStrategy.getAdKeywords(), ","));
|
|
aiBytedanceAdvertiserStrategy.setCreateTime(new Date());
|
|
aiBytedanceAdvertiserStrategy.setCreateTime(new Date());
|
|
- //默认组数量为 1
|
|
|
|
- aiBytedanceAdvertiserStrategy.setCampaignAdCnt(aiBytedanceAdvertiserStrategy.getCampaignAdCnt() == 0L ? 1 : aiBytedanceAdvertiserStrategy.getCampaignAdCnt());
|
|
|
|
|
|
+ //默认组数量为 1 -前端已修改完成
|
|
|
|
+ //aiBytedanceAdvertiserStrategy.setCampaignAdCnt(aiBytedanceAdvertiserStrategy.getCampaignAdCnt() == 0L ? 1 : aiBytedanceAdvertiserStrategy.getCampaignAdCnt());
|
|
|
|
|
|
- //同一账户下 只能有一条信息 为开启
|
|
|
|
|
|
+ //同一账户下 只能有一条信息为开启
|
|
//关闭 账户下 其他数据信息(不包含本条id信息) 状态为 关闭
|
|
//关闭 账户下 其他数据信息(不包含本条id信息) 状态为 关闭
|
|
aiBytedanceAdvertiserStrategyMapper.updStaByAccountId(String.valueOf(aiBytedanceAdvertiserStrategy.getAccountId()),"1",null);
|
|
aiBytedanceAdvertiserStrategyMapper.updStaByAccountId(String.valueOf(aiBytedanceAdvertiserStrategy.getAccountId()),"1",null);
|
|
//状态(0开 1关)
|
|
//状态(0开 1关)
|
|
@@ -1307,11 +1307,8 @@ public class AiBytedanceAdvertiserStrategyServiceImpl extends ServiceImpl<AiByte
|
|
|
|
|
|
|
|
|
|
public Result createAudiencePackage(String accountId){
|
|
public Result createAudiencePackage(String accountId){
|
|
-
|
|
|
|
CtopOauthToken token = tokenService.getOauthTokenByAccountId(accountId);
|
|
CtopOauthToken token = tokenService.getOauthTokenByAccountId(accountId);
|
|
-
|
|
|
|
Result list = marketingService.createAudiencePackage(token);
|
|
Result list = marketingService.createAudiencePackage(token);
|
|
-
|
|
|
|
return Result.successMsg("定向包创建成功。",list);
|
|
return Result.successMsg("定向包创建成功。",list);
|
|
}
|
|
}
|
|
|
|
|