tom 1 semana atrás
pai
commit
260645e92b

+ 2 - 2
ruoyi-sim/src/main/java/com/ruoyi/sim/controller/RealExamCollectionController.java

@@ -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}")