|
@@ -168,7 +168,16 @@ public class ExamRoomStudentRelationController extends BaseController {
|
|
|
@ApiOperation("删除指定教室学员")
|
|
|
@PostMapping(value = "/deleteStudentFromRoom")
|
|
|
public HttpResponseResult deleteStudentFromRoom(Long examRoomId, String registIds){
|
|
|
- examRoomStudentRelationService.deleteStudentFromRoom(examRoomId, registIds);
|
|
|
+ SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
+ Integer organId=null;
|
|
|
+ if(!sysUser.getIsSuperAdmin()){
|
|
|
+ Employee employee = employeeService.get(sysUser.getId());
|
|
|
+ if(Objects.isNull(employee)){
|
|
|
+ return failed("用户信息异常");
|
|
|
+ }
|
|
|
+ organId=employee.getOrganId();
|
|
|
+ }
|
|
|
+ examRoomStudentRelationService.deleteStudentFromRoom(examRoomId, registIds, organId);
|
|
|
return succeed();
|
|
|
}
|
|
|
}
|