|
@@ -79,8 +79,6 @@ public class ExamRoomServiceImpl extends BaseServiceImpl<Long, ExamRoom> impleme
|
|
|
@Autowired
|
|
|
private ExamRoomStudentRelationDao examRoomStudentRelationDao;
|
|
|
@Autowired
|
|
|
- private SysConfigService sysConfigService;
|
|
|
- @Autowired
|
|
|
private ExamCertificationDao examCertificationDao;
|
|
|
@Autowired
|
|
|
private ExamLocationDao examLocationDao;
|
|
@@ -790,18 +788,15 @@ public class ExamRoomServiceImpl extends BaseServiceImpl<Long, ExamRoom> impleme
|
|
|
stringBuffer.append(examRoom.getMainTeacherUserId());
|
|
|
if(StringUtils.isNotEmpty(studentIds)){
|
|
|
stringBuffer.append(",").append(studentIds);
|
|
|
- //推送消息
|
|
|
- /*String[] split = studentIds.split(",");
|
|
|
- Map<Integer, String> userPhoneMap = new HashMap<>(split.length);
|
|
|
-// Map<Integer, String> map = MapUtil.convertMybatisMap(examRoomStudentRelationService.getStuRegistrationMap(examRoomId), Integer.class, String.class);
|
|
|
-
|
|
|
- for (String s : split) {
|
|
|
- userPhoneMap.put(Integer.parseInt(s),s);
|
|
|
- }
|
|
|
-// String notifyUrl = "?examRegistrationId=" + studentExtraExercise.getId() + "&studentCourseHomeworkId=" + studentExtraExercise.getId() + "&extra=1";
|
|
|
-// String extra = "dayaedu" + notifyUrl + "&userId=" + studentId;
|
|
|
- sysMessageService.batchSendMessage(MessageTypeEnum.ACTION_EXAM_SIGN_PUSH,
|
|
|
- userPhoneMap, null, 0, null, JiguangPushPlugin.PLUGIN_NAME);*/
|
|
|
+ List<ExamRoomStudentRelation> studentRelations = examRoomStudentRelationDao.findStudentsWithExamRoom(examRoomId);
|
|
|
+ ExaminationBasic examinationBasic = examinationBasicDao.get(examRoom.getExaminationBasicId());
|
|
|
+ studentRelations.forEach(e->{
|
|
|
+ Map<Integer, String> userPhoneMap = new HashMap<>(1);
|
|
|
+ userPhoneMap.put(e.getStudentId(),e.getStudentId().toString());
|
|
|
+ String notifyUrl = "3?examRegistrationId=" + e.getExamRegistrationId();
|
|
|
+ sysMessageService.batchSendMessage(MessageTypeEnum.ACTION_EXAM_SIGN_PUSH,
|
|
|
+ userPhoneMap, null, 0, notifyUrl, JiguangPushPlugin.PLUGIN_NAME,examinationBasic.getName());
|
|
|
+ });
|
|
|
}
|
|
|
if(StringUtils.isNotEmpty(examRoom.getAssistantTeacherUserIdList())){
|
|
|
stringBuffer.append(",").append(examRoom.getAssistantTeacherUserIdList());
|