|
@@ -319,7 +319,7 @@ public class ExamRoomStudentRelationServiceImpl extends BaseServiceImpl<Long, Ex
|
|
|
}
|
|
|
}
|
|
|
//将当前学员退踢出教室
|
|
|
- imFeignService.kickRoom(new ReqUserData(examRoomStudentRelation.getExamRegistrationId(),roomStudentListDto.getStudentId().toString()));
|
|
|
+// imFeignService.kickRoom(new ReqUserData(examRoomStudentRelation.getExamRegistrationId(),roomStudentListDto.getStudentId().toString()));
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -412,6 +412,8 @@ public class ExamRoomStudentRelationServiceImpl extends BaseServiceImpl<Long, Ex
|
|
|
studentExamResult.setVideoUrl(videoUrl);
|
|
|
studentExamResult.setIsFinishedExam(5);
|
|
|
studentExamResultDao.update(studentExamResult);
|
|
|
+ ExamRoomStudentRelation roomStudentRelation = examRoomStudentRelationDao.getStudentExamRoom(examRegistrationId);
|
|
|
+ publishMessage(roomStudentRelation,MemberChangedMessage.Student_Queue,true,studentExamResult.getStudentId());
|
|
|
}
|
|
|
|
|
|
@Override
|
|
@@ -459,7 +461,7 @@ public class ExamRoomStudentRelationServiceImpl extends BaseServiceImpl<Long, Ex
|
|
|
studentExamResultDao.updateFinishedExam(examRoomStudentRelation.getExamRegistrationId(),2);
|
|
|
}else {
|
|
|
//结束考试
|
|
|
- studentExamResultDao.updateFinishedExam(examRoomStudentRelation.getExamRegistrationId(),4);
|
|
|
+ studentExamResultDao.updateFinishedExam(examRoomStudentRelation.getExamRegistrationId(),5);
|
|
|
}
|
|
|
//关闭学员房间入口
|
|
|
examRoomStudentRelation.setClassroomSwitch(0);
|
|
@@ -468,13 +470,14 @@ public class ExamRoomStudentRelationServiceImpl extends BaseServiceImpl<Long, Ex
|
|
|
}
|
|
|
|
|
|
private void nextStudent(Long nextExamRoomStudentRelationId,Boolean isPush,Integer operator){
|
|
|
- if(nextExamRoomStudentRelationId != null){
|
|
|
- ExamRoomStudentRelation examRoomStudentRelation = examRoomStudentRelationDao.get(nextExamRoomStudentRelationId);
|
|
|
- //开启学员房间入口
|
|
|
- examRoomStudentRelation.setClassroomSwitch(1);
|
|
|
- examRoomStudentRelationDao.update(examRoomStudentRelation);
|
|
|
- publishMessage(examRoomStudentRelation,MemberChangedMessage.Student_Queue,isPush,operator);
|
|
|
- }
|
|
|
+ ExamRoomStudentRelation examRoomStudentRelation = examRoomStudentRelationDao.get(nextExamRoomStudentRelationId);
|
|
|
+ //开启学员房间入口
|
|
|
+ examRoomStudentRelation.setClassroomSwitch(1);
|
|
|
+ examRoomStudentRelationDao.update(examRoomStudentRelation);
|
|
|
+
|
|
|
+ //状态变更为呼叫中
|
|
|
+ studentExamResultDao.updateFinishedExam(examRoomStudentRelation.getExamRegistrationId(),1);
|
|
|
+ publishMessage(examRoomStudentRelation,MemberChangedMessage.Student_Queue,isPush,operator);
|
|
|
}
|
|
|
|
|
|
@Override
|