|
@@ -25,6 +25,7 @@ import cn.com.qmth.examcloud.common.util.ErrorMsg;
|
|
|
import cn.com.qmth.examcloud.service.examwork.dao.ExamRepo;
|
|
|
import cn.com.qmth.examcloud.service.examwork.entity.Exam;
|
|
|
import cn.com.qmth.examcloud.service.examwork.service.ExamService;
|
|
|
+import cn.com.qmth.examcloud.service.examwork.service.ExamStudentService;
|
|
|
|
|
|
/**
|
|
|
* 考试服务API
|
|
@@ -42,6 +43,9 @@ public class ExamApi {
|
|
|
|
|
|
@Autowired
|
|
|
ExamStudentRepo examStudentRepo;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ ExamStudentService examStudentService;
|
|
|
|
|
|
@ApiOperation(value="查询所有考试批次",notes = "分页带查询")
|
|
|
@GetMapping("/exam/all/{curPage}/{pageSize}")
|
|
@@ -166,9 +170,9 @@ public class ExamApi {
|
|
|
|
|
|
@ApiOperation(value = "网考初始化更新考务信息", notes = "网考初始化更新考务信息")
|
|
|
@PutMapping("/exam/updateExamInfo")
|
|
|
- public ResponseEntity disableUser(@RequestParam Long examId,@RequestParam Long examStuId) {
|
|
|
+ public ResponseEntity updateExamInfo(@RequestParam Long examId,@RequestParam Long examStuId) {
|
|
|
examRepo.canNotDel(examId);
|
|
|
- examStudentRepo.updateForFinished(examStuId,true);
|
|
|
+ examStudentService.updateExamStudentInfo(examStuId);
|
|
|
return new ResponseEntity(HttpStatus.OK);
|
|
|
}
|
|
|
}
|