|
@@ -16,8 +16,10 @@ import ctop.bytedance.ad.advertise.vo.PlanSearchVo;
|
|
import ctop.bytedance.ad.common.constant.BytedanceConstant;
|
|
import ctop.bytedance.ad.common.constant.BytedanceConstant;
|
|
import ctop.bytedance.ad.common.entity.CtopOauthToken;
|
|
import ctop.bytedance.ad.common.entity.CtopOauthToken;
|
|
import ctop.bytedance.ad.common.entity.MaterialImageInfo;
|
|
import ctop.bytedance.ad.common.entity.MaterialImageInfo;
|
|
|
|
+import ctop.bytedance.ad.common.entity.UserAllocation;
|
|
import ctop.bytedance.ad.common.service.ICtopOauthTokenService;
|
|
import ctop.bytedance.ad.common.service.ICtopOauthTokenService;
|
|
import ctop.bytedance.ad.common.service.IMaterialImageInfoService;
|
|
import ctop.bytedance.ad.common.service.IMaterialImageInfoService;
|
|
|
|
+import ctop.bytedance.ad.common.service.IUserAllocationService;
|
|
import ctop.bytedance.ad.common.utils.*;
|
|
import ctop.bytedance.ad.common.utils.*;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
@@ -56,13 +58,14 @@ public class AiBytedanceAdvertiserStrategyController {
|
|
private IRuleDataAccountService ruleDataAccountService;
|
|
private IRuleDataAccountService ruleDataAccountService;
|
|
@Autowired
|
|
@Autowired
|
|
private IMaterialImageInfoService materialImageInfoService;
|
|
private IMaterialImageInfoService materialImageInfoService;
|
|
- @Reference
|
|
|
|
- private ICommonService commonService;
|
|
|
|
@Autowired
|
|
@Autowired
|
|
private MarketingService marketingService;
|
|
private MarketingService marketingService;
|
|
@Autowired
|
|
@Autowired
|
|
private ICtopOauthTokenService tokenService;
|
|
private ICtopOauthTokenService tokenService;
|
|
-
|
|
|
|
|
|
+ @Autowired
|
|
|
|
+ private IUserAllocationService userAllocationService;
|
|
|
|
+ @Reference
|
|
|
|
+ private ICommonService commonService;
|
|
|
|
|
|
/**
|
|
/**
|
|
* 分页列表查询
|
|
* 分页列表查询
|
|
@@ -91,6 +94,10 @@ public class AiBytedanceAdvertiserStrategyController {
|
|
IPage<AiBytedanceAdvertiserStrategy> pageList = aiBytedanceAdvertiserStrategyService.page(page, queryWrapper);
|
|
IPage<AiBytedanceAdvertiserStrategy> pageList = aiBytedanceAdvertiserStrategyService.page(page, queryWrapper);
|
|
pageList.getRecords().forEach(pojo ->{
|
|
pageList.getRecords().forEach(pojo ->{
|
|
if (!Check.isNull(pojo.getAccountId())){
|
|
if (!Check.isNull(pojo.getAccountId())){
|
|
|
|
+ UserAllocation allocation = userAllocationService.getByAccountId(pojo.getAccountId());
|
|
|
|
+ if(null!=allocation){
|
|
|
|
+ pojo.setAccountName(allocation.getAuthName());
|
|
|
|
+ }
|
|
QueryWrapper<RuleDataAccount> ruleDataAccountQueryWrapper = new QueryWrapper<>();
|
|
QueryWrapper<RuleDataAccount> ruleDataAccountQueryWrapper = new QueryWrapper<>();
|
|
ruleDataAccountQueryWrapper.eq("account_id",pojo.getAccountId());
|
|
ruleDataAccountQueryWrapper.eq("account_id",pojo.getAccountId());
|
|
//获取消耗 余额
|
|
//获取消耗 余额
|