智慧保安后台管理-外网
zengh
2021-07-29 29b4b0592230e81d2c6933279848d4333787c60d
src/main/java/org/springblade/modules/exam/controller/ExamPaperController.java
@@ -27,6 +27,7 @@
import org.springblade.core.tool.api.R;
import org.springblade.core.tool.utils.Func;
import org.springblade.modules.exam.entity.ExamPaper;
import org.springblade.modules.exam.entity.ExamSubjectChoices;
import org.springblade.modules.exam.service.ExamPaperService;
import org.springblade.modules.exam.vo.ExamPaperSubjectVO;
import org.springblade.modules.exam.vo.ExamPaperVO;
@@ -148,6 +149,18 @@
   }
   /**
    * 随机生成考试题目
    */
   @GetMapping("/queryRandomSubject")
   @ApiOperationSupport(order = 8)
   @ApiOperation(value = "考试题目绑定", notes = "传入exam")
   public R<List> queryRandomSubject(@ApiParam(value = "主键集合") ExamPaper exam) {
      List<ExamPaperSubjectVO> subject = examPaperService.queryRandomSubject(exam);
      return R.data(subject);
   }
   /**
    * 返回当前时间
    */
   @GetMapping("/getdate")