|
@@ -25,6 +25,7 @@ import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
+import java.util.HashMap;
|
|
|
import java.util.Map;
|
|
|
import java.util.Objects;
|
|
|
|
|
@@ -93,7 +94,9 @@ public class TIeInvigilateCallOeController {
|
|
|
throw new RuntimeException(e);
|
|
|
}
|
|
|
}
|
|
|
- return ResultUtil.ok(SystemConstant.SUCCESS);
|
|
|
+ Map map = new HashMap();
|
|
|
+ map.put("updateTime", System.currentTimeMillis());
|
|
|
+ return ResultUtil.ok(map);
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "监控状态更新接口")
|
|
@@ -117,7 +120,7 @@ public class TIeInvigilateCallOeController {
|
|
|
if (Objects.isNull(mapParameter.get("status")) || Objects.equals(mapParameter.get("status"), "")) {
|
|
|
throw new BusinessException("监考视频状态不能为空");
|
|
|
}
|
|
|
- MonitorStatusSourceEnum status = (MonitorStatusSourceEnum) mapParameter.get("status");
|
|
|
+ MonitorStatusSourceEnum status = MonitorStatusSourceEnum.valueOf(String.valueOf(mapParameter.get("status")).toUpperCase());
|
|
|
if (Objects.equals(status, MonitorStatusSourceEnum.STOP.name()) && (Objects.isNull(mapParameter.get("type")) || Objects.equals(mapParameter.get("type"), ""))) {
|
|
|
throw new BusinessException("异常类型不能为空");
|
|
|
}
|
|
@@ -140,7 +143,10 @@ public class TIeInvigilateCallOeController {
|
|
|
MqDto mqDto = new MqDto(MqTopicEnum.themisTopic.getCode(), MqTagEnum.MONITOR_LOG.name(), tIeExamInvigilateCallLog, MqTagEnum.MONITOR_LOG, String.valueOf(tIeExamInvigilateCallLog.getId()), source.name());
|
|
|
mqDtoService.assembleSendOneWayMsg(mqDto);
|
|
|
//监考监控通话信息 发送mq end
|
|
|
- return ResultUtil.ok(SystemConstant.SUCCESS);
|
|
|
+ Map map = new HashMap();
|
|
|
+ map.put("status", status.name());
|
|
|
+ map.put("updateTime", System.currentTimeMillis());
|
|
|
+ return ResultUtil.ok(map);
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "发送通话申请接口")
|
|
@@ -173,7 +179,9 @@ public class TIeInvigilateCallOeController {
|
|
|
MqDto mqDto = new MqDto(MqTopicEnum.themisTopic.getCode(), MqTagEnum.MONITOR_LOG.name(), tIeExamInvigilateCallLog, MqTagEnum.MONITOR_LOG, String.valueOf(tIeExamInvigilateCallLog.getId()), source.name());
|
|
|
mqDtoService.assembleSendOneWayMsg(mqDto);
|
|
|
//监考监控通话信息 发送mq end
|
|
|
- return ResultUtil.ok(SystemConstant.SUCCESS);
|
|
|
+ Map map = new HashMap();
|
|
|
+ map.put("updateTime", System.currentTimeMillis());
|
|
|
+ return ResultUtil.ok(map);
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "撤销通话申请接口")
|
|
@@ -205,6 +213,8 @@ public class TIeInvigilateCallOeController {
|
|
|
MqDto mqDto = new MqDto(MqTopicEnum.themisTopic.getCode(), MqTagEnum.MONITOR_LOG.name(), tIeExamInvigilateCallLog, MqTagEnum.MONITOR_LOG, String.valueOf(tIeExamInvigilateCallLog.getId()), source.name());
|
|
|
mqDtoService.assembleSendOneWayMsg(mqDto);
|
|
|
//监考监控通话信息 发送mq end
|
|
|
- return ResultUtil.ok(SystemConstant.SUCCESS);
|
|
|
+ Map map = new HashMap();
|
|
|
+ map.put("updateTime", System.currentTimeMillis());
|
|
|
+ return ResultUtil.ok(map);
|
|
|
}
|
|
|
}
|