|
@@ -421,7 +421,7 @@ public class OrderCalcServiceImpl implements OrderCalcService {
|
|
|
ptReplenish = ancestorQuotaInt - ancestorHighQuota;
|
|
|
}
|
|
|
}
|
|
|
- changeUserWallet(integralSaveReqVOS, integralDO, integralDOAncestor, ptIntegral, amount,
|
|
|
+ changeUserWallet(integralDO, integralDOAncestor, ptIntegral, amount,
|
|
|
descendantQuotaInt, highQuotaInt, grossProfitAfterBonusInt, platformQuotaInt);
|
|
|
|
|
|
// ========== 修改平台信息 =================
|
|
@@ -595,7 +595,6 @@ public class OrderCalcServiceImpl implements OrderCalcService {
|
|
|
/**
|
|
|
* 修改用户钱包
|
|
|
*
|
|
|
- * @param integralSaveReqVOS 、
|
|
|
* @param integralDO 当前用户钱包
|
|
|
* @param integralDOAncestor 推荐人钱包
|
|
|
* @param pt pt钱包
|
|
@@ -605,11 +604,13 @@ public class OrderCalcServiceImpl implements OrderCalcService {
|
|
|
* @param ptA pt收益
|
|
|
* @param ptB pt服务费
|
|
|
*/
|
|
|
- private void changeUserWallet(List<IntegralSaveReqVO> integralSaveReqVOS, IntegralDO integralDO, IntegralDO integralDOAncestor, IntegralDO pt,
|
|
|
+ private void changeUserWallet(IntegralDO integralDO, IntegralDO integralDOAncestor, IntegralDO pt,
|
|
|
Long ancestorQuota, Long descendantQuota, Long highQuota, Long ptA, Long ptB) {
|
|
|
// 修改用户钱包
|
|
|
// 增加直推人额度
|
|
|
integralDO.setHighQuota(integralDO.getHighQuota() + highQuota);
|
|
|
+ //增加累计峰值
|
|
|
+ integralDO.setHighQuota(integralDO.getHighQuotaTotal() + highQuota);
|
|
|
integralDO.setFreezeHighQuota(integralDO.getFreezeHighQuota() - highQuota);
|
|
|
// todo 增加累计额度
|
|
|
|