| 
					
				 | 
			
			
				@@ -293,7 +293,7 @@ public class PartitionCrashServiceImpl implements PartitionCrashService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     // 碰撞后的额度添加到日志中 增加日志模块 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     integralService.updateIntegral(BeanUtils.toBean(integralDO, IntegralSaveReqVO.class)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     ptProfitLogService.addMessage(k.getUserId(), CaclEnum.SMALL_QUOTA_CRASH, amount, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                            integralDO.getCurrentQuota(), JsonUtils.toJsonString(orderPercentageDO), ptReplenish); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            integralDO.getCurrentQuota(), JsonUtils.toJsonString(orderPercentageDO), ptReplenish,-amount,highQuota - amount); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 //直推人的上级的本次添加积分 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -320,31 +320,9 @@ public class PartitionCrashServiceImpl implements PartitionCrashService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     // 碰撞后的额度添加到日志中 增加日志模块 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     integralService.updateIntegral(BeanUtils.toBean(parentIntegralDo, IntegralSaveReqVO.class)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     ptProfitLogService.addMessage(parentIntegralDo.getUserId(), CaclEnum.SMALL_QUOTA_CRASH, parentAmount, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                            parentIntegralDo.getCurrentQuota(), JsonUtils.toJsonString(orderPercentageDO), parentPtReplenish); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            parentIntegralDo.getCurrentQuota(), JsonUtils.toJsonString(orderPercentageDO), parentPtReplenish,-parentAmount,parentHighQuota - parentAmount); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//                if (compare(highQuota, multiply) && multiply.longValue() != 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//                    integralDO.setCurrentQuota(integralDO.getCurrentQuota() + multiply.intValue()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//                    integralDO.setHighQuota(integralDO.getHighQuota() - multiply.intValue()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-// 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//                    addHighQuota(userHighQuotaMap, integralDO.getUserId(), (long) multiply.intValue()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-// 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//                    integralDO.setAccumulatedQuota(integralDO.getAccumulatedQuota() + multiply.intValue()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//                    // 碰撞后的额度添加到日志中 增加日志模块 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//                    integralService.updateIntegral(BeanUtils.toBean(integralDO, IntegralSaveReqVO.class)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//                    ptProfitLogService.addMessage(k.getUserId(), CaclEnum.SMALL_QUOTA_CRASH, Long.parseLong(String.valueOf(multiply.intValue())), integralDO.getCurrentQuota(), JsonUtils.toJsonString(orderPercentageDO)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//                if (compare(parentHighQuota, multiply) && multiply.longValue() != 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//                    // 减去最高额度 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//                    parentIntegralDo.setCurrentQuota(parentIntegralDo.getCurrentQuota() + multiply.intValue()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//                    parentIntegralDo.setHighQuota(parentIntegralDo.getHighQuota() - multiply.intValue()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-// 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//                    addHighQuota(userHighQuotaMap, parentIntegralDo.getUserId(), (long) multiply.intValue()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-// 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//                    parentIntegralDo.setAccumulatedQuota(parentIntegralDo.getAccumulatedQuota() + multiply.intValue()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//                    // 碰撞后的额度添加到日志中 增加日志模块 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//                    integralService.updateIntegral(BeanUtils.toBean(parentIntegralDo, IntegralSaveReqVO.class)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//                    ptProfitLogService.addMessage(parentIntegralDo.getUserId(), CaclEnum.SMALL_QUOTA_CRASH, Long.parseLong(String.valueOf(multiply.intValue())), parentIntegralDo.getCurrentQuota(), JsonUtils.toJsonString(orderPercentageDO)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 if (!ptReplenish.equals(0L)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     calcIntegral(ptReplenish, integralDO.getUserId(), JsonUtils.toJsonString(orderPercentageDO)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -440,25 +418,10 @@ public class PartitionCrashServiceImpl implements PartitionCrashService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     ptProfit.setPtTotalAdd(ptProfit.getPtTotalAdd() - amount); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     // 碰撞后的额度添加到日志中 增加日志模块 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     ptProfitLogService.addMessage(entry.getKey(), CaclEnum.AFTER_CRASH_CALC_PT_TOTAL_QUOTA 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                            , -entry.getValue(), ptProfit.getPtTotalAdd(), JsonUtils.toJsonString(orderPercentageDO), null); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            , -entry.getValue(), ptProfit.getPtTotalAdd(), JsonUtils.toJsonString(orderPercentageDO), null,null,null); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     ptProfitLogService.addMessage(entry.getKey(), CaclEnum.AFTER_CRASH_CALC_PT_TOTAL_GROSS_QUOTA 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                            , -entry.getValue(), ptProfit.getPtGrossAdd(), JsonUtils.toJsonString(orderPercentageDO), null); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            , -entry.getValue(), ptProfit.getPtGrossAdd(), JsonUtils.toJsonString(orderPercentageDO), null,null,null); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//                if (highQuota.compareTo(0L) > 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//                    integralService.updateIntegral(BeanUtils.toBean(integralDO, IntegralSaveReqVO.class)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-// 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-// 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//                    // 扣除平台收益 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//                    log.info("扣除平台收益[合赢奖] " + "用户 " + entry.getKey() + "额度: " + entry.getValue()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//                    ptProfit.setPtGrossAdd(ptProfit.getPtGrossAdd() - entry.getValue()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//                    // 平台扣除积分 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//                    ptProfit.setPtTotalAdd(ptProfit.getPtTotalAdd() - entry.getValue()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//                    // 碰撞后的额度添加到日志中 增加日志模块 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//                    ptProfitLogService.addMessage(entry.getKey(), CaclEnum.AFTER_CRASH_CALC_PT_TOTAL_QUOTA 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//                            , -entry.getValue(), ptProfit.getPtTotalAdd(), JsonUtils.toJsonString(orderPercentageDO),null); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//                    ptProfitLogService.addMessage(entry.getKey(), CaclEnum.AFTER_CRASH_CALC_PT_TOTAL_GROSS_QUOTA 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//                            , -entry.getValue(), ptProfit.getPtTotalAdd(), JsonUtils.toJsonString(orderPercentageDO),null); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         ptProfitService.updatePtProfit(PtProfitSaveReqVO.builder().id(ptProfit.getId()) 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -492,8 +455,8 @@ public class PartitionCrashServiceImpl implements PartitionCrashService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     private void calcIntegral(Long multiply, Long userId, String jsonString) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         PtProfitDO ptProfit = ptProfitService.getPtProfit(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        ptProfitLogService.addMessage(null, CaclEnum.GROSS_PROFIT_BONUS_QUOTA_PERC_EXCEED_MAXIMUM_LIMIT, multiply, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                ptProfit.getPtTotalAdd(), jsonString, userId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        ptProfitLogService.addMessage(userId, CaclEnum.GROSS_PROFIT_BONUS_QUOTA_PERC_EXCEED_MAXIMUM_LIMIT, multiply, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                ptProfit.getPtTotalAdd(), jsonString, null,null,null); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     private void createPtProfitDailyStatisticsLog(Long sum) { 
			 |