|
@@ -155,6 +155,9 @@ public class TIeInvigilateController {
|
|
|
@RequestMapping(value = "/list/video/random", method = RequestMethod.POST)
|
|
|
@ApiResponses({@ApiResponse(code = 200, message = "监考监控信息", response = InvigilateListVideoBean.class)})
|
|
|
public Result listVideoRandom(@ApiParam(value = "考试批次id", required = false) @RequestParam(required = false) Long examId, @ApiParam(value = "随机数", required = true) @RequestParam Integer randomNum) {
|
|
|
+ if (Objects.isNull(randomNum) || Objects.equals(randomNum, "")) {
|
|
|
+ throw new BusinessException("随机数不能为空");
|
|
|
+ }
|
|
|
TBUser tbUser = (TBUser) ServletUtil.getRequestAccount();
|
|
|
AuthDto authDto = (AuthDto) redisUtil.get(SystemConstant.userOauth + "::" + tbUser.getId());
|
|
|
//如果有监考员角色,只能查看自己所监考的考场,巡考员和管理员则可以查看全部考场
|