|
@@ -93,7 +93,7 @@ public class BytedanceAdvertiserHourlyReportServiceImpl extends ServiceImpl<Byte
|
|
|
strategyQueryWrapper.last("limit 1");
|
|
|
AiBytedanceAdvertiserStrategy strategy = aiBytedanceAdvertiserStrategyMapper.selectOne(strategyQueryWrapper);
|
|
|
//没有预算则使用上阶段花费
|
|
|
- double accountBudget = Check.isNull(strategy) ? lastCost : strategy.getAccountBudget();
|
|
|
+ double accountBudget = Check.isNull(strategy) ? lastCost : strategy.getAccountBudget().doubleValue();
|
|
|
//花费占比
|
|
|
double costShare = nowCost / accountBudget;
|
|
|
resultMap.put("costShare", df.format(costShare));
|
|
@@ -194,7 +194,7 @@ public class BytedanceAdvertiserHourlyReportServiceImpl extends ServiceImpl<Byte
|
|
|
strategyQueryWrapper.eq("status",0);
|
|
|
strategyQueryWrapper.last("limit 1");
|
|
|
AiBytedanceAdvertiserStrategy strategy = aiBytedanceAdvertiserStrategyMapper.selectOne(strategyQueryWrapper);
|
|
|
- double accountBudget = Check.isNull(strategy) ? 0 : strategy.getAccountBudget();
|
|
|
+ double accountBudget = Check.isNull(strategy) ? 0 : strategy.getAccountBudget().doubleValue();
|
|
|
resultMap.put("accountMap", accountMap);
|
|
|
resultMap.put("accountBudget", accountBudget);
|
|
|
|