|
@@ -147,7 +147,15 @@ public class ExamRoomController extends BaseController {
|
|
|
@GetMapping(value = "/getExamRoomStatisticsInfo")
|
|
|
public HttpResponseResult<ExamRoomStatisticsDto> getExamRoomStatisticsInfo(Long examId){
|
|
|
SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
- return succeed(examRoomService.getExamRoomStatisticsInfo(sysUser.getId(), examId));
|
|
|
+ Integer organId=null;
|
|
|
+ if(!sysUser.getIsSuperAdmin()){
|
|
|
+ Employee employee = employeeService.get(sysUser.getId());
|
|
|
+ if(Objects.isNull(employee)){
|
|
|
+ return failed("用户信息异常");
|
|
|
+ }
|
|
|
+ organId=employee.getOrganId();
|
|
|
+ }
|
|
|
+ return succeed(examRoomService.getExamRoomStatisticsInfo(organId, examId));
|
|
|
}
|
|
|
|
|
|
@ApiOperation("获取报名学员可加入教室列表")
|