|
@@ -12,7 +12,10 @@ import com.qmth.themis.business.entity.TEExamStudentLog;
|
|
import com.qmth.themis.business.entity.TIeExamInvigilateNotice;
|
|
import com.qmth.themis.business.entity.TIeExamInvigilateNotice;
|
|
import com.qmth.themis.business.entity.TOeExamRecord;
|
|
import com.qmth.themis.business.entity.TOeExamRecord;
|
|
import com.qmth.themis.business.enums.*;
|
|
import com.qmth.themis.business.enums.*;
|
|
-import com.qmth.themis.business.service.*;
|
|
|
|
|
|
+import com.qmth.themis.business.service.TEExamStudentLogService;
|
|
|
|
+import com.qmth.themis.business.service.TEExamStudentService;
|
|
|
|
+import com.qmth.themis.business.service.TIeExamInvigilateNoticeService;
|
|
|
|
+import com.qmth.themis.business.service.TMRocketMessageService;
|
|
import com.qmth.themis.business.util.JacksonUtil;
|
|
import com.qmth.themis.business.util.JacksonUtil;
|
|
import com.qmth.themis.common.contanst.Constants;
|
|
import com.qmth.themis.common.contanst.Constants;
|
|
import com.qmth.themis.common.exception.BusinessException;
|
|
import com.qmth.themis.common.exception.BusinessException;
|
|
@@ -64,9 +67,9 @@ public class MqOeLogicServiceImpl implements MqOeLogicService {
|
|
*/
|
|
*/
|
|
@Transactional
|
|
@Transactional
|
|
public Map<String, Object> oeMonitorFinishLogicPersisted(Object s,
|
|
public Map<String, Object> oeMonitorFinishLogicPersisted(Object s,
|
|
- ConcurrentHashMap<String, WebSocketOeServer> webSocketMap,
|
|
|
|
- MqDto mqDto,
|
|
|
|
- String key) {
|
|
|
|
|
|
+ ConcurrentHashMap<String, WebSocketOeServer> webSocketMap,
|
|
|
|
+ MqDto mqDto,
|
|
|
|
+ String key) {
|
|
Map<String, Object> map = null;
|
|
Map<String, Object> map = null;
|
|
Long recordId = Long.parseLong(String.valueOf(s));
|
|
Long recordId = Long.parseLong(String.valueOf(s));
|
|
//获取考试记录的客户端websocketId
|
|
//获取考试记录的客户端websocketId
|
|
@@ -86,7 +89,7 @@ public class MqOeLogicServiceImpl implements MqOeLogicService {
|
|
map.put(SystemConstant.WEB_SOCKET_OE_SERVER, webSocketOeServer);
|
|
map.put(SystemConstant.WEB_SOCKET_OE_SERVER, webSocketOeServer);
|
|
map.put(SystemConstant.RECORD_ID, recordId);
|
|
map.put(SystemConstant.RECORD_ID, recordId);
|
|
map.put(SystemConstant.MESSAGE, FinishTypeEnum.valueOf(String.valueOf(mqDto.getProperties().get(SystemConstant.TYPE))).getCode());
|
|
map.put(SystemConstant.MESSAGE, FinishTypeEnum.valueOf(String.valueOf(mqDto.getProperties().get(SystemConstant.TYPE))).getCode());
|
|
- TEExamStudentLog teExamStudentLog = new TEExamStudentLog(mqDto.getType().name(), mqDto.getType().getCode(), mqDto.getType().getCode(), examStudentCacheBean.getStudentId(), examStudentId, recordId, mqDto.getType().getCode());
|
|
|
|
|
|
+ TEExamStudentLog teExamStudentLog = new TEExamStudentLog(mqDto.getType().name(), "监考老师[" + mqDto.getObjName() + "]强制离线(交卷)", mqDto.getType().getCode(), examStudentCacheBean.getStudentId(), examStudentId, recordId, mqDto.getType().getCode());
|
|
teExamStudentLogService.save(teExamStudentLog);
|
|
teExamStudentLogService.save(teExamStudentLog);
|
|
|
|
|
|
tmRocketMessageService.saveMqMessageSuccess(mqDto, key);
|
|
tmRocketMessageService.saveMqMessageSuccess(mqDto, key);
|
|
@@ -106,9 +109,9 @@ public class MqOeLogicServiceImpl implements MqOeLogicService {
|
|
*/
|
|
*/
|
|
@Transactional
|
|
@Transactional
|
|
public Map<String, Object> oeWarningFinishLogicPersisted(Object s,
|
|
public Map<String, Object> oeWarningFinishLogicPersisted(Object s,
|
|
- ConcurrentHashMap<String, WebSocketOeServer> webSocketMap,
|
|
|
|
- MqDto mqDto,
|
|
|
|
- String key) {
|
|
|
|
|
|
+ ConcurrentHashMap<String, WebSocketOeServer> webSocketMap,
|
|
|
|
+ MqDto mqDto,
|
|
|
|
+ String key) {
|
|
Map<String, Object> map = null;
|
|
Map<String, Object> map = null;
|
|
Long recordId = Long.parseLong(String.valueOf(s));
|
|
Long recordId = Long.parseLong(String.valueOf(s));
|
|
String clientWebsocketId = ExamRecordCacheUtil.getClientWebsocketId(recordId);
|
|
String clientWebsocketId = ExamRecordCacheUtil.getClientWebsocketId(recordId);
|
|
@@ -145,8 +148,8 @@ public class MqOeLogicServiceImpl implements MqOeLogicService {
|
|
*/
|
|
*/
|
|
@Transactional
|
|
@Transactional
|
|
public Map<String, Object> oeImClusteringLogicPersisted(ConcurrentHashMap<String, WebSocketOeServer> webSocketMap,
|
|
public Map<String, Object> oeImClusteringLogicPersisted(ConcurrentHashMap<String, WebSocketOeServer> webSocketMap,
|
|
- MqDto mqDto,
|
|
|
|
- String key) {
|
|
|
|
|
|
+ MqDto mqDto,
|
|
|
|
+ String key) {
|
|
Map<String, Object> map = null;
|
|
Map<String, Object> map = null;
|
|
Long recordId = Long.parseLong(String.valueOf(mqDto.getBody()));
|
|
Long recordId = Long.parseLong(String.valueOf(mqDto.getBody()));
|
|
String clientWebsocketId = ExamRecordCacheUtil.getClientWebsocketId(recordId);
|
|
String clientWebsocketId = ExamRecordCacheUtil.getClientWebsocketId(recordId);
|
|
@@ -187,8 +190,8 @@ public class MqOeLogicServiceImpl implements MqOeLogicService {
|
|
*/
|
|
*/
|
|
@Transactional
|
|
@Transactional
|
|
public Map<String, Object> oeLivenessVerifyLogicPersisted(ConcurrentHashMap<String, WebSocketOeServer> webSocketMap,
|
|
public Map<String, Object> oeLivenessVerifyLogicPersisted(ConcurrentHashMap<String, WebSocketOeServer> webSocketMap,
|
|
- MqDto mqDto,
|
|
|
|
- String key) {
|
|
|
|
|
|
+ MqDto mqDto,
|
|
|
|
+ String key) {
|
|
Map<String, Object> map = null;
|
|
Map<String, Object> map = null;
|
|
Long recordId = Long.parseLong(String.valueOf(mqDto.getBody()));
|
|
Long recordId = Long.parseLong(String.valueOf(mqDto.getBody()));
|
|
String clientWebsocketId = ExamRecordCacheUtil.getClientWebsocketId(recordId);
|
|
String clientWebsocketId = ExamRecordCacheUtil.getClientWebsocketId(recordId);
|