|  | @@ -84,10 +84,15 @@ public class StudentAttendanceServiceImpl extends BaseServiceImpl<Long, StudentA
 | 
	
		
			
				|  |  |  			throw new BizException("请指定课程");
 | 
	
		
			
				|  |  |  		}
 | 
	
		
			
				|  |  |  		Date date = new Date();
 | 
	
		
			
				|  |  | -		SysConfig attendanceTimeRange = sysConfigService.findByParamName(SysConfigService.ENABLE_STUDENT_ATTENDANCE_TIME_RANGE);
 | 
	
		
			
				|  |  | +		SysConfig attendanceTimeRange;
 | 
	
		
			
				|  |  | +		if(courseSchedule.getGroupType().equals(GroupType.MUSIC)){
 | 
	
		
			
				|  |  | +			attendanceTimeRange = sysConfigService.findByParamName(SysConfigService.ENABLE_STUDENT_ATTENDANCE_TIME_RANGE);
 | 
	
		
			
				|  |  | +		}else{
 | 
	
		
			
				|  |  | +			attendanceTimeRange = sysConfigService.findByParamName(SysConfigService.ENABLE_STUDENT_ATTENDANCE_TIME_RANGE_VIP);
 | 
	
		
			
				|  |  | +		}
 | 
	
		
			
				|  |  |  		int courseEndTime = DateUtil.minutesBetween(courseSchedule.getEndClassTime(), date);
 | 
	
		
			
				|  |  |  		if(date.after(courseSchedule.getEndClassTime())&&courseEndTime>attendanceTimeRange.getParanValue(Integer.class)){
 | 
	
		
			
				|  |  | -			throw new BizException("课程结束一小时后禁止点名");
 | 
	
		
			
				|  |  | +			throw new BizException("{}课结束{}分钟后禁止点名", courseSchedule.getGroupType().equals(GroupType.MUSIC)?"乐团":"VIP", attendanceTimeRange);
 | 
	
		
			
				|  |  |  		}
 | 
	
		
			
				|  |  |  		studentAttendanceDao.deleteStudentAttendancesByCourse(courseScheduleId);
 | 
	
		
			
				|  |  |  		int classTimes=courseScheduleDao.countClassTimes(courseSchedule.getClassGroupId().longValue(),courseSchedule.getStartClassTime());
 |