|  | @@ -284,7 +284,7 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  		//计算课程相关费用信息
 | 
	
		
			
				|  |  |  		Map<String, BigDecimal> costInfo = countVipGroupPredictFee(vipGroupApplyBaseInfoDto,
 | 
	
		
			
				|  |  | -				vipGroupApplyBaseInfoDto.getUserId());
 | 
	
		
			
				|  |  | +				vipGroupApplyBaseInfoDto.getUserId(), null);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          vipGroupApplyBaseInfoDto.setAuditStatus(AuditStatusEnum.PASS);
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -952,7 +952,8 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @Override
 | 
	
		
			
				|  |  |      public <K extends VipGroup> Map<String,BigDecimal> countVipGroupPredictFee(K vipGroup,
 | 
	
		
			
				|  |  | -																			   Integer teacherId){
 | 
	
		
			
				|  |  | +																			   Integer teacherId,
 | 
	
		
			
				|  |  | +																			   Long courseId){
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  		if(Objects.isNull(teacherId)){
 | 
	
		
			
				|  |  |  			throw new BizException("请指定教师");
 | 
	
	
		
			
				|  | @@ -983,7 +984,10 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
 | 
	
		
			
				|  |  |  		Map<String,BigDecimal> results=new HashMap<>(1);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  		int normalStudentNum = 0;
 | 
	
		
			
				|  |  | -		if(Objects.nonNull(vipGroup.getId())){
 | 
	
		
			
				|  |  | +		if(Objects.nonNull(courseId)){
 | 
	
		
			
				|  |  | +			normalStudentNum = courseScheduleStudentPaymentDao.countStudentNum(courseId.intValue());
 | 
	
		
			
				|  |  | +		}
 | 
	
		
			
				|  |  | +		if(normalStudentNum<=0&&Objects.nonNull(vipGroup.getId())){
 | 
	
		
			
				|  |  |  			normalStudentNum = classGroupStudentMapperDao.countGroupNormalStudentNum(GroupType.VIP, vipGroup.getId().toString());
 | 
	
		
			
				|  |  |  		}
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -2098,7 +2102,7 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
 | 
	
		
			
				|  |  |  				classGroupTeacherMapperDao.insert(classGroupTeacherMapper);
 | 
	
		
			
				|  |  |  			}
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -			Map<String, BigDecimal> salaryMap = countVipGroupPredictFee(vipGroup, vipGroup.getUserId());
 | 
	
		
			
				|  |  | +			Map<String, BigDecimal> salaryMap = countVipGroupPredictFee(vipGroup, vipGroup.getUserId(), null);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  			//创建老师单节课课酬信息
 | 
	
		
			
				|  |  |  			courseScheduleTeacherSalaryService.createCourseScheduleTeacherVipSalary(vipGroup,
 | 
	
	
		
			
				|  | @@ -2750,7 +2754,7 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  		courseScheduleService.batchAddCourseSchedule(vipGroupApplyDto.getCourseSchedules());
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -		Map<String, BigDecimal> map = countVipGroupPredictFee(vipGroup, vipGroup.getUserId());
 | 
	
		
			
				|  |  | +		Map<String, BigDecimal> map = countVipGroupPredictFee(vipGroup, vipGroup.getUserId(), null);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  		BigDecimal teacherSalary=BigDecimal.ZERO;
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -2871,7 +2875,7 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
 | 
	
		
			
				|  |  |  			if(courseNum==0){
 | 
	
		
			
				|  |  |  				courseScheduleService.batchAddCourseSchedule(courseSchedules);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -				Map<String, BigDecimal> salaryMap = countVipGroupPredictFee(vipGroup, vipGroup.getUserId());
 | 
	
		
			
				|  |  | +				Map<String, BigDecimal> salaryMap = countVipGroupPredictFee(vipGroup, vipGroup.getUserId(), null);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  				//创建老师单节课课酬信息
 | 
	
		
			
				|  |  |  				courseScheduleTeacherSalaryService.createCourseScheduleTeacherVipSalary(vipGroup,
 |