| 
					
				 | 
			
			
				@@ -136,7 +136,9 @@ public class ClassGroupServiceImpl extends BaseServiceImpl<Integer, ClassGroup> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Autowired 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     private SysConfigService sysConfigService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Autowired 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    private StudentDao studentDao; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//    private StudentDao studentDao; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//    @Autowired 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    private StudentService studentService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Autowired 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     private MusicGroupPaymentCalenderCourseSettingsService musicGroupPaymentCalenderCourseSettingsService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Autowired 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1351,7 +1353,7 @@ public class ClassGroupServiceImpl extends BaseServiceImpl<Integer, ClassGroup> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if(totalCourseScheduleStudentPayments.size() > 0){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 courseScheduleStudentPaymentService.batchInsert(totalCourseScheduleStudentPayments); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                studentDao.updateStudentServiceTag(studentId, null, YesOrNoEnum.YES.getCode()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                studentService.updateStudentServiceTag(studentId, null, YesOrNoEnum.YES.getCode()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if(!CollectionUtils.isEmpty(courseScheduleList)){ 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1857,7 +1859,7 @@ public class ClassGroupServiceImpl extends BaseServiceImpl<Integer, ClassGroup> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (classGroup4MixDtos.get(0).getType().equals(ClassGroupTypeEnum.MUSIC_NETWORK)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             teachMode = TeachModeEnum.ONLINE; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            List<String> studentNames = studentDao.getStudentNames(studentIdList); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            List<String> studentNames = studentService.getStudentNames(studentIdList); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             classGroup4MixDtos.get(0).setClassGroupName(subjectNames + "•" + StringUtils.join(studentNames, ",")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -2059,7 +2061,7 @@ public class ClassGroupServiceImpl extends BaseServiceImpl<Integer, ClassGroup> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         //学生结算表 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (courseScheduleList.size() > 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             courseScheduleStudentPaymentService.createForMusicGroup(musicGroupId, courseScheduleList, studentIdList); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            studentDao.updateStudentServiceTag(null, studentIdList, YesOrNoEnum.YES.getCode()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            studentService.updateStudentServiceTag(null, studentIdList, YesOrNoEnum.YES.getCode()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         //创建IM群组 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         addImGroup(classGroup, userIds, teacherIds); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -2605,7 +2607,7 @@ public class ClassGroupServiceImpl extends BaseServiceImpl<Integer, ClassGroup> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (!CollectionUtils.isEmpty(studentList)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            studentDao.updateStudentServiceTag(null, studentIds, YesOrNoEnum.YES.getCode()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            studentService.updateStudentServiceTag(null, studentIds, YesOrNoEnum.YES.getCode()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             //学生结算表 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             courseScheduleStudentPaymentService.createForMusicGroup(musicGroupId, courseScheduleList, studentIds); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -2649,7 +2651,7 @@ public class ClassGroupServiceImpl extends BaseServiceImpl<Integer, ClassGroup> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         //更新学员服务指标 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         List<CourseScheduleStudentPayment> studentPayments = courseScheduleStudentPaymentDao.findByCourseScheduleIds(courseScheduleIds); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         List<Integer> studentIds = studentPayments.stream().map(e -> e.getUserId()).collect(Collectors.toList()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        studentDao.updateStudentServiceTag(null, studentIds, YesOrNoEnum.YES.getCode()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        studentService.updateStudentServiceTag(null, studentIds, YesOrNoEnum.YES.getCode()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         //初始化老师考勤表 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         List<CourseScheduleTeacherSalary> courseScheduleTeacherSalaries = courseScheduleTeacherSalaryDao.findByCourseSchedules(courseScheduleIds); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         List<TeacherAttendance> teacherIdByCourseSchedule = teacherAttendanceDao.findTeacherIdByCourseSchedule(courseScheduleIds); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -2676,6 +2678,12 @@ public class ClassGroupServiceImpl extends BaseServiceImpl<Integer, ClassGroup> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             teacherAttendanceDao.batchInsert(teacherAttendances); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         imUserFriendService.refreshGroupImUserFriend(termCourseDetail.getMusicGroupId(),MUSIC); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        //是否是该乐团第一次会员排课 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        List<MusicGroupSchoolTermCourseDetail> termCourseDetails = musicGroupSchoolTermCourseDetailDao.findByMusicGroupId(termCourseDetail.getMusicGroupId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if(termCourseDetails.size() == 1){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            MusicGroupPaymentCalender calender = musicGroupPaymentCalenderDao.findByMusicGroupRegCalender(termCourseDetail.getMusicGroupId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            studentService.batchUpdateMemberRank(studentIds,calender.getMemberRankSettingId(),PeriodEnum.MONTH,calender.getMemberValidDate()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Override 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -3221,7 +3229,7 @@ public class ClassGroupServiceImpl extends BaseServiceImpl<Integer, ClassGroup> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         //学生结算表 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (!CollectionUtils.isEmpty(studentIdList)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             courseScheduleStudentPaymentService.createForMusicGroup(musicGroupId, courseScheduleList, studentIdList); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            studentDao.updateStudentServiceTag(null, studentIdList, YesOrNoEnum.YES.getCode()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            studentService.updateStudentServiceTag(null, studentIdList, YesOrNoEnum.YES.getCode()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return classGroup; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 |