修改分佣算法

This commit is contained in:
韩鹏辉
2023-07-12 16:48:09 +08:00
parent a6e3fc2bcb
commit d5556450c3

View File

@@ -180,7 +180,7 @@ public class MerchantProfitServiceImpl extends ServiceImpl<MerchantProfitMapper,
}
if(!"1".equals(userPromotion.getIsExtend())||!"2".equals(userPromotion.getIsExtend())){
createUserV3Profit(order,userPromotion.getParentUserId(),profits,nowRate);
createUserV3Profit(order,userPromotion.getParentUserId(),profits,new BigDecimal(userPromotion.getCurrentFee()));
}
UserApp nowUserApp = userAppMapper.selectByUserId(userId);
@@ -201,7 +201,7 @@ public class MerchantProfitServiceImpl extends ServiceImpl<MerchantProfitMapper,
MerchantProfit profit = new MerchantProfit(nowUserApp, pUserApp, order, profitAmt, profitRate, "1", "1");
profits.add(profit);
sendProfitMessage(pUserApp, profitAmt, order.getOrderNumber());
createUserV3Profit(order,userPromotion.getParentUserId(),profits,nowRate);
createUserV3Profit(order,userPromotion.getParentUserId(),profits,new BigDecimal(userPromotion.getCurrentFee()));
}