|
@@ -178,7 +178,6 @@ public class TIeInvigilateController {
|
|
@RequestMapping(value = "/list/video/random", method = RequestMethod.POST)
|
|
@RequestMapping(value = "/list/video/random", method = RequestMethod.POST)
|
|
@ApiResponses({@ApiResponse(code = 200, message = "监考监控信息", response = InvigilateListVideoBean.class)})
|
|
@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) {
|
|
public Result listVideoRandom(@ApiParam(value = "考试批次id", required = false) @RequestParam(required = false) Long examId, @ApiParam(value = "随机数", required = true) @RequestParam Integer randomNum) {
|
|
-// long startTime = System.currentTimeMillis();
|
|
|
|
if (Objects.isNull(randomNum) || Objects.equals(randomNum, "")) {
|
|
if (Objects.isNull(randomNum) || Objects.equals(randomNum, "")) {
|
|
throw new BusinessException("随机数不能为空");
|
|
throw new BusinessException("随机数不能为空");
|
|
}
|
|
}
|
|
@@ -218,9 +217,7 @@ public class TIeInvigilateController {
|
|
}
|
|
}
|
|
});
|
|
});
|
|
}
|
|
}
|
|
-// long end = System.currentTimeMillis();
|
|
|
|
-// log.info("============list/video/random耗时============:{}秒", (end - startTime) / 1000);
|
|
|
|
- Collections.sort(invigilateListVideoBeanList);
|
|
|
|
|
|
+ invigilateListVideoBeanList.sort(Comparator.comparing(InvigilateListVideoBean::getMonitorLiveUrl, Comparator.nullsLast(Comparator.naturalOrder())));
|
|
return ResultUtil.ok(invigilateListVideoBeanList);
|
|
return ResultUtil.ok(invigilateListVideoBeanList);
|
|
}
|
|
}
|
|
|
|
|