修改分佣算法添加异常费率判断处理

This commit is contained in:
韩鹏辉
2023-07-13 11:53:12 +08:00
parent bf6d441383
commit 67c4a1e858

View File

@@ -200,7 +200,7 @@ public class MerchantProfitServiceImpl extends ServiceImpl<MerchantProfitMapper,
}
BigDecimal profitAmt = profitRate.divide(BigDecimal.valueOf(10000)).multiply(BigDecimal.valueOf(order.getConsumeFee())).setScale(4, BigDecimal.ROUND_DOWN);
MerchantProfit profit = new MerchantProfit(nowUserApp, pUserApp, order, profitAmt, profitRate, "1", "1");
MerchantProfit profit = new MerchantProfit(nowUserApp, pUserApp, order, profitAmt, profitRate, "5", "1");
profits.add(profit);
sendProfitMessage(pUserApp, profitAmt, order.getOrderNumber());
createUserV3Profit(order,userPromotion.getParentUserId(),profits,new BigDecimal(userPromotion.getCurrentFee()));