|
|
|
@ -1,5 +1,6 @@ |
|
|
|
package com.bnyer.system.service.impl; |
|
|
|
|
|
|
|
import cn.hutool.core.collection.CollectionUtil; |
|
|
|
import cn.hutool.core.util.RandomUtil; |
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
|
|
|
import com.bnyer.common.core.constant.ProfitOrderConstant; |
|
|
|
@ -134,7 +135,7 @@ public class ProfitVerifyOrderServiceImpl implements IProfitVerifyOrderService { |
|
|
|
BigDecimal invitePrice = yesterdayTotalInviteProfit.divide(BigDecimal.valueOf(platformDownloadNum), 3, RoundingMode.DOWN); |
|
|
|
//查出昨日对应平台的所有广告待入账信息
|
|
|
|
List<CreatorProfit> adProfits = creatorProfitService.queryPreProfit(params.getPlatform(), params.getAppType(), "0",date); |
|
|
|
if(adProfits.size() > 0){ |
|
|
|
if(CollectionUtil.isNotEmpty(adProfits)){ |
|
|
|
for (CreatorProfit adProfit : adProfits) { |
|
|
|
//设置广告收益
|
|
|
|
adProfit.setProfit(BigDecimal.valueOf(adProfit.getDownloadNum()).multiply(adPrice)); |
|
|
|
@ -146,7 +147,7 @@ public class ProfitVerifyOrderServiceImpl implements IProfitVerifyOrderService { |
|
|
|
} |
|
|
|
//查出昨日对应平台的所有邀请待入账信息
|
|
|
|
List<CreatorProfit> inviteProfits = creatorProfitService.queryPreProfit(params.getPlatform(), params.getAppType(), "1",date); |
|
|
|
if(inviteProfits.size() > 0){ |
|
|
|
if(CollectionUtil.isNotEmpty(inviteProfits)){ |
|
|
|
//设置邀请收益
|
|
|
|
for (CreatorProfit inviteProfit : inviteProfits) { |
|
|
|
inviteProfit.setProfit(BigDecimal.valueOf(inviteProfit.getDownloadNum()).multiply(invitePrice)); |
|
|
|
|