|
@@ -644,9 +644,9 @@ public class ExamRoomStudentRelationServiceImpl extends BaseServiceImpl<Long, Ex
|
|
|
//当等待人数到指定数值时,推送准备考试消息
|
|
|
int actionExamPush = Integer.parseInt(sysConfigService.findConfigValue("action_exam_push",roomStudentListDto.getTenantId()));
|
|
|
if(actionExamPush != 0 && roomStudentListDtos.size() > actionExamPush){
|
|
|
- RoomStudentListDto studentListDto = roomStudentListDtos.get(actionExamPush - 1);
|
|
|
- if(studentListDto.getFinishedExam() == 3){
|
|
|
- HashMap<Integer, String> map = new HashMap<>();
|
|
|
+ RoomStudentListDto studentListDto = roomStudentListDtos.get(actionExamPush);
|
|
|
+ if(studentListDto.getFinishedExam() == 2){
|
|
|
+ HashMap<Integer, String> map = new HashMap<>(1);
|
|
|
map.put(studentListDto.getStudentId(),studentListDto.getStudentId().toString());
|
|
|
String url = "3?examRegistrationId=" + studentListDto.getExamRegistrationId();
|
|
|
sysMessageService.batchSendMessage(MessageTypeEnum.EXAM_WILL_START_PUSH,map,null,0,url, JiguangPushPlugin.PLUGIN_NAME,actionExamPush);
|