|
@@ -3,8 +3,10 @@ package com.keao.edu.user.service.impl;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.keao.edu.auth.api.client.SysMessageFeignService;
|
|
|
import com.keao.edu.auth.api.client.SysUserFeignService;
|
|
|
+import com.keao.edu.auth.api.entity.SysMessageParams;
|
|
|
import com.keao.edu.auth.api.entity.SysUser;
|
|
|
import com.keao.edu.common.dal.BaseDAO;
|
|
|
+import com.keao.edu.common.enums.MessageTypeEnum;
|
|
|
import com.keao.edu.common.enums.YesOrNoEnum;
|
|
|
import com.keao.edu.common.exception.BizException;
|
|
|
import com.keao.edu.common.page.PageInfo;
|
|
@@ -295,8 +297,13 @@ public class ExamRoomStudentRelationServiceImpl extends BaseServiceImpl<Long, Ex
|
|
|
//开启学员房间入口
|
|
|
examRoomStudentRelation.setClassroomSwitch(YesOrNoEnum.YES);
|
|
|
examRoomStudentRelationDao.update(examRoomStudentRelation);
|
|
|
+ Integer studentId = examRoomStudentRelation.getStudentId();
|
|
|
//推送消息
|
|
|
-
|
|
|
+ Map<Integer, String> userPhoneMap = new HashMap<>();
|
|
|
+ userPhoneMap.put(studentId, studentId.toString());
|
|
|
+ SysMessageParams sysMessageParams=new SysMessageParams(MessageTypeEnum.EXAM_REGISTRATION_URL_PUSH,
|
|
|
+ userPhoneMap, null, 0, null, null);
|
|
|
+ sysMessageFeignService.batchSendMessage(sysMessageParams);
|
|
|
}
|
|
|
try {
|
|
|
SysUser sysUser = sysUserFeignService.queryUserInfo();
|