|  | @@ -2299,7 +2299,8 @@ public class PracticeGroupServiceImpl extends BaseServiceImpl<Long, PracticeGrou
 | 
	
		
			
				|  |  |              return BaseController.failed(HttpStatus.EXPECTATION_FAILED, "训练时间与陪练次数不匹配");
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -        SysUser sysUser = sysUserFeignService.queryUserById(practiceGroupBuyParams.getStudentId());
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        SysUser sysUser = teacherDao.getUser(practiceGroupBuyParams.getStudentId());
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          Subject subject = subjectDao.get(practiceGroupBuyParams.getSubjectId());
 | 
	
		
			
				|  |  |          if (Objects.isNull(subject)) {
 | 
	
	
		
			
				|  | @@ -2314,15 +2315,8 @@ public class PracticeGroupServiceImpl extends BaseServiceImpl<Long, PracticeGrou
 | 
	
		
			
				|  |  |          SysConfig practiceCourseMinutesConfig = sysConfigDao.findByParamName(SysConfigService.PRACTICE_COURSE_MINUTES);
 | 
	
		
			
				|  |  |          Integer practiceCourseMinutes = practiceCourseMinutesConfig.getParanValue(Integer.class);
 | 
	
		
			
				|  |  |          SysConfig practiceCourseSalaryConfig = sysConfigDao.findByParamName(SysConfigService.PRACTICE_COURSE_SALARY);
 | 
	
		
			
				|  |  | -        /*SysConfig practiceBuyActivityExpireDateConfig = sysConfigDao.findByParamName(SysConfigService.PRACTICE_BUY_ACTIVITY_EXPIRE_DATE);
 | 
	
		
			
				|  |  | -        Date practiceBuyActivityExpireDate = DateUtil.stringToDate(practiceBuyActivityExpireDateConfig.getParanValue(), "yyyy-MM-dd HH:mm:ss");
 | 
	
		
			
				|  |  | -        SysConfig practicePromotionActivityStartDateConfig = sysConfigDao.findByParamName(SysConfigService.PRACTICE_PROMOTION_ACTIVITY_START_DATE);
 | 
	
		
			
				|  |  | -        Date practicePromotionActivityStartDate = DateUtil.stringToDate(practicePromotionActivityStartDateConfig.getParanValue(), "yyyy-MM-dd HH:mm:ss");
 | 
	
		
			
				|  |  | -*/
 | 
	
		
			
				|  |  |          Date now = new Date();
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -//        int studentExitChargePractices = practiceGroupDao.checkStudentExitChargePractice(practiceGroupBuyParams.getStudentId(),"2021-03-09 00:00:00");
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |          LocalDate courseStartDay = LocalDate.now();
 | 
	
		
			
				|  |  |          LocalDate tempCourseLocalDate = LocalDate.parse("2020-03-01", DateUtil.dateFormatter);
 | 
	
		
			
				|  |  |          if (courseStartDay.isBefore(tempCourseLocalDate)) {
 | 
	
	
		
			
				|  | @@ -2366,9 +2360,7 @@ public class PracticeGroupServiceImpl extends BaseServiceImpl<Long, PracticeGrou
 | 
	
		
			
				|  |  |          courseExpiredDate = DateUtil.addSeconds(courseExpiredDate, -1);
 | 
	
		
			
				|  |  |          practiceGroupBuyParams.setCoursesExpireDate(courseExpiredDate);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -//        LocalDate courseStartMonday=courseStartDay.with(DateUtil.weekFields.dayOfWeek(), DayOfWeek.MONDAY.getValue());
 | 
	
		
			
				|  |  |          LocalDate courseExpiredSunday = currentExpiredDay.with(DateUtil.weekFields.dayOfWeek(), DayOfWeek.SUNDAY.getValue());
 | 
	
		
			
				|  |  | -//        Date courseStartMondayDate = Date.from(courseStartMonday.atStartOfDay(DateUtil.zoneId).toInstant());
 | 
	
		
			
				|  |  |          Date courseExpiredSundayDate = Date.from(courseExpiredSunday.atStartOfDay(DateUtil.zoneId).toInstant());
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          practiceGroupBuyParams.setName(subject.getName() + "•" + sysUser.getUsername());
 | 
	
	
		
			
				|  | @@ -2587,7 +2579,6 @@ public class PracticeGroupServiceImpl extends BaseServiceImpl<Long, PracticeGrou
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          try {
 | 
	
		
			
				|  |  |              courseScheduleService.checkNewCourseSchedules(practiceCourses, false, false);
 | 
	
		
			
				|  |  | -//            courseScheduleService.checkNewCourseSchedulesWithoutMusicGroup(practiceCourses,false);
 | 
	
		
			
				|  |  |          } catch (Exception e) {
 | 
	
		
			
				|  |  |              TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
 | 
	
		
			
				|  |  |              String errMessage = new String();
 | 
	
	
		
			
				|  | @@ -3283,7 +3274,6 @@ public class PracticeGroupServiceImpl extends BaseServiceImpl<Long, PracticeGrou
 | 
	
		
			
				|  |  |                  userMap.put(practiceGroup.getStudentId(), practiceGroup.getStudentId().toString());
 | 
	
		
			
				|  |  |                  sysMessageService.batchSendMessage(MessageSenderPluginContext.MessageSender.JIGUANG, MessageTypeEnum.STUDENT_SMS_PUSH_PAY_PRACTICE_BUY_SUCCESS,
 | 
	
		
			
				|  |  |                          userMap, null, 0, null, "STUDENT", groupStartTime, groupEndTime, teacherName, drillTimesOnWeek, firstCourseStartTime);
 | 
	
		
			
				|  |  | -//            SysUser student = sysUserFeignService.queryUserById(practiceGroup.getStudentId());
 | 
	
		
			
				|  |  |                  SysUser student = teacherDao.getUser(practiceGroup.getStudentId());
 | 
	
		
			
				|  |  |                  Map<Integer, String> userPhoneMap = new HashMap<>();
 | 
	
		
			
				|  |  |                  userPhoneMap.put(practiceGroup.getStudentId(), student.getPhone());
 |