|
@@ -86,10 +86,12 @@ public class AiBytedanceAdvertiserStrategyController {
|
|
|
ruleDataAccountQueryWrapper.eq("account_id",pojo.getAccountId());
|
|
ruleDataAccountQueryWrapper.eq("account_id",pojo.getAccountId());
|
|
|
//获取消耗 余额
|
|
//获取消耗 余额
|
|
|
RuleDataAccount ruleDataAccountVo = ruleDataAccountService.getOne(ruleDataAccountQueryWrapper);
|
|
RuleDataAccount ruleDataAccountVo = ruleDataAccountService.getOne(ruleDataAccountQueryWrapper);
|
|
|
- //消耗
|
|
|
|
|
- pojo.setCost(ruleDataAccountVo.getCost());
|
|
|
|
|
- //余额
|
|
|
|
|
- pojo.setValidBalance(ruleDataAccountVo.getValidBalance());
|
|
|
|
|
|
|
+ if(null!=ruleDataAccountVo){
|
|
|
|
|
+ //消耗
|
|
|
|
|
+ pojo.setCost(ruleDataAccountVo.getCost());
|
|
|
|
|
+ //余额
|
|
|
|
|
+ pojo.setValidBalance(ruleDataAccountVo.getValidBalance());
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|