|
@@ -101,13 +101,13 @@ public class RealExamCollectionController extends BaseController {
|
|
|
@ApiOperation("[教师][正式使用]打开考试集合")
|
|
|
public AjaxResult openExam(@PathVariable("examCollectionId") Long examCollectionId) {
|
|
|
l.info("[教师][正式使用]打开考试集合");
|
|
|
- return service.open(examCollectionId);
|
|
|
+ return service.open(examCollectionId, RealExamCollection.Type.EXAM);
|
|
|
}
|
|
|
|
|
|
@PutMapping(value = "/teacher/exercise/open/{examCollectionId}")
|
|
|
@ApiOperation("[教师][正式使用]打开练习集合")
|
|
|
public AjaxResult openExercise(@PathVariable("examCollectionId") Long examCollectionId) {
|
|
|
- return service.open(examCollectionId);
|
|
|
+ return service.open(examCollectionId, RealExamCollection.Type.EXERCISE);
|
|
|
}
|
|
|
|
|
|
@PutMapping(value = "/teacher/exam/close/{examCollectionId}")
|