|
@@ -454,16 +454,8 @@ public class ExamStudentController extends ControllerSupport {
|
|
|
@ApiOperation(value = "复制考试学生", notes = "复制")
|
|
|
@Transactional
|
|
|
@PostMapping("/copy/{sourceExamId}/{targetExamId}")
|
|
|
- public ResponseEntity copyExamStudent(@PathVariable Long sourceExamId,
|
|
|
- @PathVariable Long targetExamId) {
|
|
|
- try {
|
|
|
- examStudentService.copyExamStudent(sourceExamId, targetExamId);
|
|
|
- return new ResponseEntity(HttpStatus.OK);
|
|
|
- } catch (Exception e) {
|
|
|
- log.error("复制失败:", e);
|
|
|
- return new ResponseEntity(new ErrorMsg(e.getMessage()),
|
|
|
- HttpStatus.INTERNAL_SERVER_ERROR);
|
|
|
- }
|
|
|
+ public void copyExamStudent(@PathVariable Long sourceExamId, @PathVariable Long targetExamId) {
|
|
|
+ examStudentService.copyExamStudent(sourceExamId, targetExamId);
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "考生完成数量", notes = "考生完成数量")
|