| 
					
				 | 
			
			
				@@ -232,6 +232,13 @@ public class StudentAttendanceServiceImpl extends BaseServiceImpl<Long, StudentA 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			studentAttendance.setCourseScheduleId(courseSchedule.getId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		studentAttendanceDao.addStudentAttendances(studentAttendances); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		List<StudentAttendance> allStudentAttendances = studentAttendanceDao.findByCourseId(studentAttendanceInfo.getCourseScheduleId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		Map<StudentAttendanceStatusEnum, List<StudentAttendance>> studentAttendanceGroupByStatus = allStudentAttendances.stream().collect(Collectors.groupingBy(StudentAttendance::getStatus)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		Integer studentNum=studentAttendanceGroupByStatus.get(StudentAttendanceStatusEnum.NORMAL)==null?0:studentAttendanceGroupByStatus.get(StudentAttendanceStatusEnum.NORMAL).size(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		Integer leaveStudentNum=studentAttendanceGroupByStatus.get(StudentAttendanceStatusEnum.LEAVE)==null?0:studentAttendanceGroupByStatus.get(StudentAttendanceStatusEnum.LEAVE).size(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		courseSchedule.setStudentNum(studentNum); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		courseSchedule.setLeaveStudentNum(leaveStudentNum); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		courseScheduleDao.update(courseSchedule); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	@Override 
			 |