StudentExamResultController.java 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. package com.keao.edu.controller;
  2. import com.keao.edu.auth.api.client.SysUserFeignService;
  3. import com.keao.edu.common.controller.BaseController;
  4. import com.keao.edu.common.entity.HttpResponseResult;
  5. import com.keao.edu.user.service.EmployeeService;
  6. import com.keao.edu.user.service.StudentExamResultService;
  7. import io.swagger.annotations.Api;
  8. import io.swagger.annotations.ApiOperation;
  9. import org.springframework.beans.factory.annotation.Autowired;
  10. import org.springframework.web.bind.annotation.PostMapping;
  11. import org.springframework.web.bind.annotation.RequestMapping;
  12. import org.springframework.web.bind.annotation.RequestMethod;
  13. import org.springframework.web.bind.annotation.RestController;
  14. /**
  15. * @Author Joburgess
  16. * @Date 2020.06.30
  17. */
  18. @RestController
  19. @RequestMapping("studentExamResult")
  20. @Api(tags = "考试结果服务")
  21. public class StudentExamResultController extends BaseController {
  22. @Autowired
  23. private StudentExamResultService studentExamResultService;
  24. @Autowired
  25. private SysUserFeignService sysUserFeignService;
  26. @Autowired
  27. private EmployeeService employeeService;
  28. @ApiOperation("确认考生")
  29. @PostMapping(value = "/confirmStudent")
  30. public HttpResponseResult confirmStudent(Long examRegistrationId) {
  31. studentExamResultService.confirmStudent(examRegistrationId);
  32. return succeed();
  33. }
  34. /**
  35. * 屏蔽指定用户
  36. * @param roomId
  37. * @return
  38. * @throws Exception
  39. */
  40. @RequestMapping(value = "/shieldUserId", method = RequestMethod.POST)
  41. public Object shieldUserId(Long roomId,Integer shieldFlag)throws Exception {
  42. studentExamResultService.shieldUserId(roomId,shieldFlag);
  43. return succeed();
  44. }
  45. }