|
@@ -179,30 +179,9 @@ public class TIeReportController {
|
|
|
@RequestMapping(value = "/patrol", method = RequestMethod.POST)
|
|
|
@ApiResponses({@ApiResponse(code = 200, message = "在线巡考报表信息", response = InvigilateListPatrolReportBean.class)})
|
|
|
public Result patrolReport(@ApiParam(value = "考试批次id", required = false) @RequestParam(required = false) Long examId) {
|
|
|
- TBUser tbUser = (TBUser) ServletUtil.getRequestAccount();
|
|
|
- AuthDto authDto = (AuthDto) redisUtil.get(SystemConstant.userOauth + "::" + tbUser.getId());
|
|
|
- //如果有监考员角色,只能查看自己所监考的考场,巡考员和管理员则可以查看全部考场
|
|
|
- Long userId = null;
|
|
|
- if (authDto.getRoleCodes().toString().contains(RoleEnum.INVIGILATE.name())) {
|
|
|
- userId = tbUser.getId();
|
|
|
- }
|
|
|
- return ResultUtil.ok(reportService.patrolReport(examId, userId));
|
|
|
- }
|
|
|
-
|
|
|
- @ApiOperation(value = "考情监控报表接口")
|
|
|
- @RequestMapping(value = "/exam/invigilate", method = RequestMethod.POST)
|
|
|
- @ApiResponses({@ApiResponse(code = 200, message = "考情监控报表信息", response = InvigilateListPatrolReportBean.class)})
|
|
|
- public Result examInvigilateReport(@ApiParam(value = "考试批次id", required = false) @RequestParam(required = false) Long examId) {
|
|
|
- TBUser tbUser = (TBUser) ServletUtil.getRequestAccount();
|
|
|
- AuthDto authDto = (AuthDto) redisUtil.get(SystemConstant.userOauth + "::" + tbUser.getId());
|
|
|
- //如果有监考员角色,只能查看自己所监考的考场,巡考员和管理员则可以查看全部考场
|
|
|
- Long userId = null;
|
|
|
- if (authDto.getRoleCodes().toString().contains(RoleEnum.INVIGILATE.name())) {
|
|
|
- userId = tbUser.getId();
|
|
|
- }
|
|
|
- return ResultUtil.ok(reportService.examInvigilateReport(examId, userId));
|
|
|
+ return ResultUtil.ok(reportService.patrolReport(examId, null));
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
@ApiOperation(value = "考情监控-人数")
|
|
|
@RequestMapping(value = "/examination_monitor/count", method = RequestMethod.POST)
|
|
|
@ApiResponses({@ApiResponse(code = 200, message = "结果信息")})
|