| 
					
				 | 
			
			
				@@ -2275,11 +2275,10 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		if(Objects.nonNull(vipGroupActivity)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            if(vipGroupActivity.getType().equals(VipGroupActivityTypeEnum.DISCOUNT)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                VipGroupSalarySettlementDto vipGroupSalarySettlementDto = JSON.parseObject(vipGroupActivity.getSalarySettlementJson(), VipGroupSalarySettlementDto.class); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                surplusCoursesPrice=surplusCoursesPrice.multiply((vipGroupSalarySettlementDto.getOnlineSalarySettlement().getSettlementValue())).divide(new BigDecimal(100), CommonConstants.DECIMAL_PLACE, BigDecimal.ROUND_DOWN).setScale(0,BigDecimal.ROUND_HALF_UP); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        BigDecimal discount=null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		if(Objects.nonNull(vipGroupActivity)&&vipGroupActivity.getType().equals(VipGroupActivityTypeEnum.DISCOUNT)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            discount=new BigDecimal(vipGroupActivity.getAttribute1()).divide(new BigDecimal(100), CommonConstants.DECIMAL_PLACE, BigDecimal.ROUND_DOWN); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            surplusCoursesPrice=surplusCoursesPrice.multiply(discount).setScale(CommonConstants.DECIMAL_FINAL_PLACE,BigDecimal.ROUND_HALF_UP); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		//生成学生单课缴费信息 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -2322,6 +2321,9 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 						courseScheduleStudentPayment.setExpectPrice(new BigDecimal(0)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				if(Objects.nonNull(discount)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    courseScheduleStudentPayment.setExpectPrice(courseScheduleStudentPayment.getExpectPrice().multiply(discount).setScale(CommonConstants.DECIMAL_FINAL_PLACE,BigDecimal.ROUND_HALF_UP)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				courseScheduleStudentPayment.setCreateTime(now); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				courseScheduleStudentPayment.setUpdateTime(now); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				courseScheduleStudentPayments.add(courseScheduleStudentPayment); 
			 |