| 
														
															@@ -83,6 +83,12 @@ public class StudentAttendanceServiceImpl extends BaseServiceImpl<Long, StudentA 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		if(Objects.isNull(courseSchedule)){ 
														 | 
														
														 | 
														
															 		if(Objects.isNull(courseSchedule)){ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			throw new BizException("请指定课程"); 
														 | 
														
														 | 
														
															 			throw new BizException("请指定课程"); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		} 
														 | 
														
														 | 
														
															 		} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		Date date = new Date(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		SysConfig attendanceTimeRange = sysConfigService.findByParamName(SysConfigService.ENABLE_STUDENT_ATTENDANCE_TIME_RANGE); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		int courseEndTime = DateUtil.minutesBetween(courseSchedule.getEndClassTime(), date); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		if(courseEndTime>attendanceTimeRange.getParanValue(Integer.class)){ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			throw new BizException("可点名时间范围为课程结束后一小时内"); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		studentAttendanceDao.deleteStudentAttendancesByCourse(courseScheduleId); 
														 | 
														
														 | 
														
															 		studentAttendanceDao.deleteStudentAttendancesByCourse(courseScheduleId); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		int classTimes=courseScheduleDao.countClassTimes(courseSchedule.getClassGroupId().longValue(),courseSchedule.getStartClassTime()); 
														 | 
														
														 | 
														
															 		int classTimes=courseScheduleDao.countClassTimes(courseSchedule.getClassGroupId().longValue(),courseSchedule.getStartClassTime()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		studentAttendances.forEach(studentAttendance -> { 
														 | 
														
														 | 
														
															 		studentAttendances.forEach(studentAttendance -> { 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -166,7 +172,6 @@ public class StudentAttendanceServiceImpl extends BaseServiceImpl<Long, StudentA 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		TeacherAttendance teacherAttendance=teacherAttendanceDao.findByTeacherAttendanceInfo(sysUser.getId().longValue(),courseSchedule.getId()); 
														 | 
														
														 | 
														
															 		TeacherAttendance teacherAttendance=teacherAttendanceDao.findByTeacherAttendanceInfo(sysUser.getId().longValue(),courseSchedule.getId()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															-		Date date = new Date(); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		if(Objects.isNull(teacherAttendance)){ 
														 | 
														
														 | 
														
															 		if(Objects.isNull(teacherAttendance)){ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			teacherAttendance= new TeacherAttendance(); 
														 | 
														
														 | 
														
															 			teacherAttendance= new TeacherAttendance(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			teacherAttendance.setTeacherId(sysUser.getId()); 
														 | 
														
														 | 
														
															 			teacherAttendance.setTeacherId(sysUser.getId()); 
														 |