|  | @@ -460,7 +460,7 @@ public class OrderCalcServiceImpl implements OrderCalcService {
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |              changeUserWallet(integralDO, integralDOAncestor, ptIntegral, amount,
 | 
	
		
			
				|  |  | -                    descendantQuotaInt, highQuotaInt, grossProfitAfterBonusInt, platformQuotaInt);
 | 
	
		
			
				|  |  | +                    descendantQuotaInt, highQuotaInt, grossProfitAfterBonusInt, platformQuotaInt, ptReplenish);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |              // ========== 修改平台信息 =================
 | 
	
		
			
				|  |  |              // 每个订单计算的过程
 | 
	
	
		
			
				|  | @@ -633,22 +633,23 @@ public class OrderCalcServiceImpl implements OrderCalcService {
 | 
	
		
			
				|  |  |      /**
 | 
	
		
			
				|  |  |       * 修改用户钱包
 | 
	
		
			
				|  |  |       *
 | 
	
		
			
				|  |  | -     * @param integralDO 当前用户钱包
 | 
	
		
			
				|  |  | +     * @param integralDO         当前用户钱包
 | 
	
		
			
				|  |  |       * @param integralDOAncestor 推荐人钱包
 | 
	
		
			
				|  |  | -     * @param pt pt钱包
 | 
	
		
			
				|  |  | -     * @param ancestorQuota 推荐人额度
 | 
	
		
			
				|  |  | -     * @param descendantQuota 直推人额度
 | 
	
		
			
				|  |  | -     * @param highQuota 最大可用额度
 | 
	
		
			
				|  |  | -     * @param ptA pt收益
 | 
	
		
			
				|  |  | -     * @param ptB pt服务费
 | 
	
		
			
				|  |  | +     * @param pt                 pt钱包
 | 
	
		
			
				|  |  | +     * @param ancestorQuota      推荐人额度
 | 
	
		
			
				|  |  | +     * @param descendantQuota    直推人额度
 | 
	
		
			
				|  |  | +     * @param highQuota          最大可用额度
 | 
	
		
			
				|  |  | +     * @param ptA                pt收益
 | 
	
		
			
				|  |  | +     * @param ptB                pt服务费
 | 
	
		
			
				|  |  | +     * @param ptReplenish        超出没有获取到的积分
 | 
	
		
			
				|  |  |       */
 | 
	
		
			
				|  |  |      private void changeUserWallet(IntegralDO integralDO, IntegralDO integralDOAncestor, IntegralDO pt,
 | 
	
		
			
				|  |  | -                                  Long ancestorQuota, Long descendantQuota, Long highQuota, Long ptA, Long ptB) {
 | 
	
		
			
				|  |  | +                                  Long ancestorQuota, Long descendantQuota, Long highQuota, Long ptA, Long ptB, Long ptReplenish) {
 | 
	
		
			
				|  |  |          // 修改用户钱包
 | 
	
		
			
				|  |  |          // 增加直推人额度
 | 
	
		
			
				|  |  |          integralDO.setHighQuota(integralDO.getHighQuota() + highQuota);
 | 
	
		
			
				|  |  |          //增加累计峰值
 | 
	
		
			
				|  |  | -        integralDO.setHighQuota(integralDO.getHighQuotaTotal() + highQuota);
 | 
	
		
			
				|  |  | +        integralDO.setHighQuotaTotal(integralDO.getHighQuotaTotal() + highQuota);
 | 
	
		
			
				|  |  |          integralDO.setFreezeHighQuota(integralDO.getFreezeHighQuota() - highQuota);
 | 
	
		
			
				|  |  |          // todo 增加累计额度
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -659,7 +660,7 @@ public class OrderCalcServiceImpl implements OrderCalcService {
 | 
	
		
			
				|  |  |          // 减少推荐人的可获取额度
 | 
	
		
			
				|  |  |          integralDOAncestor.setHighQuota(integralDOAncestor.getHighQuota() - ancestorQuota);
 | 
	
		
			
				|  |  |          integralDOAncestor.setAncestorQuota(integralDOAncestor.getAncestorQuota() + ancestorQuota);
 | 
	
		
			
				|  |  | -        integralDOAncestor.setFreezeQuota(integralDOAncestor.getFreezeQuota() - ancestorQuota);
 | 
	
		
			
				|  |  | +        integralDOAncestor.setFreezeQuota(integralDOAncestor.getFreezeQuota() - ancestorQuota - ptReplenish);
 | 
	
		
			
				|  |  |          integralService.updateIntegral(BeanUtils.toBean(integralDOAncestor, IntegralSaveReqVO.class));
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          // 增加平台额度
 |