|  | @@ -238,7 +238,7 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  		List<Integer> canBuyStudentIds = Arrays.stream(vipGroupApplyBaseInfoDto.getStudentIdList().split(",")).map(e -> Integer.valueOf(e)).collect(Collectors.toList());
 | 
	
		
			
				|  |  | -		List<VipGroupStudentCoursePrice> vscps = new ArrayList<>();
 | 
	
		
			
				|  |  | +		List<VipGroupStudentCoursePrice> vscps = vipGroup.getVipGroupApplyBaseInfo().getVipGroupStudentCoursePrices();
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  		//获取活动信息
 | 
	
		
			
				|  |  |  		VipGroupActivity vipGroupActivity = vipGroupActivityDao.get(vipGroup.getVipGroupApplyBaseInfo().getVipGroupActivityId());
 | 
	
	
		
			
				|  | @@ -248,9 +248,6 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
 | 
	
		
			
				|  |  |  					||firstCourseSchedule.getStartClassTime().before(vipGroupActivity.getCoursesStartTime())){
 | 
	
		
			
				|  |  |  				throw new BizException("课时安排时间超出范围!");
 | 
	
		
			
				|  |  |  			}
 | 
	
		
			
				|  |  | -			for (Integer canBuyStudentId : canBuyStudentIds) {
 | 
	
		
			
				|  |  | -				vscps.add(new VipGroupStudentCoursePrice(canBuyStudentId, vipGroupApplyBaseInfoDto.getOfflineClassesUnitPrice(), vipGroupApplyBaseInfoDto.getOfflineClassesUnitPrice()));
 | 
	
		
			
				|  |  | -			}
 | 
	
		
			
				|  |  |  		}else{
 | 
	
		
			
				|  |  |  			VipGroupDefaultClassesCycle vipGroupDefaultClassesCycle = vipGroupDefaultClassesCycleDao.findByOrganAndClassTimes(totalClassTimes);
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -260,15 +257,6 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
 | 
	
		
			
				|  |  |  					throw new BizException("课时安排时间超出范围!");
 | 
	
		
			
				|  |  |  				}
 | 
	
		
			
				|  |  |  			}
 | 
	
		
			
				|  |  | -			vscps = vipGroup.getVipGroupApplyBaseInfo().getVipGroupStudentCoursePrices();
 | 
	
		
			
				|  |  | -			vipGroupApplyBaseInfoDto.setTotalPrice(new BigDecimal(0));
 | 
	
		
			
				|  |  | -			for (VipGroupStudentCoursePrice vscp : vscps) {
 | 
	
		
			
				|  |  | -				if(Objects.isNull(vscp.getOnlineClassesUnitPrice())||Objects.isNull(vscp.getOfflineClassesUnitPrice())){
 | 
	
		
			
				|  |  | -					throw new BizException("请设置课程单价");
 | 
	
		
			
				|  |  | -				}
 | 
	
		
			
				|  |  | -				vscp.setPaymentPrice(vscp.getOfflineClassesUnitPrice().multiply(new BigDecimal(vipGroupApplyBaseInfoDto.getOfflineClassesNum())).add(vscp.getOnlineClassesUnitPrice().multiply(new BigDecimal(vipGroupApplyBaseInfoDto.getOnlineClassesNum()))));
 | 
	
		
			
				|  |  | -				vipGroupApplyBaseInfoDto.setTotalPrice(vipGroupApplyBaseInfoDto.getTotalPrice().add(vscp.getPaymentPrice()));
 | 
	
		
			
				|  |  | -			}
 | 
	
		
			
				|  |  |  		}
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  		int repeatVipGroups = vipGroupDao.countUserRepeatVipGroupInCourseStartEndTime(vipGroupApplyBaseInfoDto.getUserId(), firstCourseSchedule.getStartClassTime(), latestCourseSchedule.getEndClassTime());
 | 
	
	
		
			
				|  | @@ -313,6 +301,11 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
 | 
	
		
			
				|  |  |  		}else{
 | 
	
		
			
				|  |  |  			vipGroupApplyBaseInfoDto.setStatus(VipGroupStatusEnum.APPLYING);
 | 
	
		
			
				|  |  |  		}
 | 
	
		
			
				|  |  | +		if(CollectionUtils.isEmpty(vscps)){
 | 
	
		
			
				|  |  | +			for (Integer canBuyStudentId : canBuyStudentIds) {
 | 
	
		
			
				|  |  | +				vscps.add(new VipGroupStudentCoursePrice(canBuyStudentId, vipGroupApplyBaseInfoDto.getOfflineClassesUnitPrice(), vipGroupApplyBaseInfoDto.getOfflineClassesUnitPrice(), vipGroupApplyBaseInfoDto.getTotalPrice()));
 | 
	
		
			
				|  |  | +			}
 | 
	
		
			
				|  |  | +		}
 | 
	
		
			
				|  |  |          Teacher teacher = teacherService.get(vipGroupApplyBaseInfoDto.getUserId());
 | 
	
		
			
				|  |  |  		if(Objects.isNull(teacher)){
 | 
	
		
			
				|  |  |  		    throw new BizException("教师不存在");
 |