|  | @@ -39,6 +39,7 @@ import com.ym.utils.CodeUtil;
 | 
	
		
			
				|  |  |  import com.ym.utils.DateTimeUtils;
 | 
	
		
			
				|  |  |  import com.ym.utils.IdentifierUtils;
 | 
	
		
			
				|  |  |  import com.ym.whiteboard.WhiteBoardHelper;
 | 
	
		
			
				|  |  | +import io.swagger.models.auth.In;
 | 
	
		
			
				|  |  |  import lombok.extern.slf4j.Slf4j;
 | 
	
		
			
				|  |  |  import org.apache.commons.lang3.StringUtils;
 | 
	
		
			
				|  |  |  import org.springframework.beans.factory.annotation.Autowired;
 | 
	
	
		
			
				|  | @@ -94,6 +95,28 @@ public class RoomServiceImpl implements RoomService {
 | 
	
		
			
				|  |  |      @Autowired
 | 
	
		
			
				|  |  |      private RedisTemplate<String,String> redisTemplate;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +    @Override
 | 
	
		
			
				|  |  | +    public Integer getCurrentCourseId(String roomId){
 | 
	
		
			
				|  |  | +        String continueCourseTime = sysConfigDao.findConfigValue(SysConfigService.ONLINE_CONTINUE_COURSE_TIME);
 | 
	
		
			
				|  |  | +        if(StringUtils.isEmpty(continueCourseTime)){
 | 
	
		
			
				|  |  | +            continueCourseTime = "5";
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        CourseSchedule courseSchedule = courseScheduleDao.get(Long.parseLong(roomId));
 | 
	
		
			
				|  |  | +        CourseSchedule schedule = courseSchedule;
 | 
	
		
			
				|  |  | +        //如果当前课程是连堂课,那么获取第一节课的课程编号
 | 
	
		
			
				|  |  | +        while (true){
 | 
	
		
			
				|  |  | +            String classDate = DateUtil.format(schedule.getClassDate(), DateUtil.DEFAULT_PATTERN);
 | 
	
		
			
				|  |  | +            String startClassTime = DateUtil.format(schedule.getStartClassTime(), DateUtil.EXPANDED_TIME_FORMAT);
 | 
	
		
			
				|  |  | +            schedule = courseScheduleDao.getLastCourse(schedule.getClassGroupId(),classDate + " " + startClassTime,schedule.getActualTeacherId(),continueCourseTime);
 | 
	
		
			
				|  |  | +            if(schedule != null){
 | 
	
		
			
				|  |  | +                roomId = schedule.getId().toString();
 | 
	
		
			
				|  |  | +            }else {
 | 
	
		
			
				|  |  | +                break;
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        return Integer.parseInt(roomId);
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |      @Transactional(rollbackFor = Exception.class, isolation = Isolation.SERIALIZABLE)
 | 
	
		
			
				|  |  |      @Override
 | 
	
		
			
				|  |  |      public RoomResult joinRoom(String roomId) throws Exception {
 |