考试相关
This commit is contained in:
@@ -166,13 +166,20 @@ public class ClassExamController {
|
|||||||
return classExamService.generateExamPaper(params);
|
return classExamService.generateExamPaper(params);
|
||||||
}
|
}
|
||||||
|
|
||||||
//提交考卷
|
//提交试卷
|
||||||
@RequestMapping("/submitExamPaper")
|
@RequestMapping("/submitExamPaper")
|
||||||
public R submitExamPaper(@RequestBody Map<String,Object> params){
|
public R submitExamPaper(@RequestBody Map<String,Object> params){
|
||||||
Object examPaper = classExamService.submitExamPaper(params);
|
Object examPaper = classExamService.submitExamPaper(params);
|
||||||
return R.ok().put("examPaper",examPaper);
|
return R.ok().put("examPaper",examPaper);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//试卷详情
|
||||||
|
@RequestMapping("/getExamPaperInfo")
|
||||||
|
public R getExamPaperInfo(@RequestBody Map<String,Object> params){
|
||||||
|
Object examPaper = classExamService.getExamPaperInfo(params);
|
||||||
|
return R.ok().put("examPaper",examPaper);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -30,4 +30,6 @@ public interface ClassExamService extends IService<ClassExam> {
|
|||||||
|
|
||||||
Object submitExamPaper(Map<String,Object> params);
|
Object submitExamPaper(Map<String,Object> params);
|
||||||
|
|
||||||
|
Object getExamPaperInfo(Map<String,Object> params);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -217,4 +217,11 @@ public class ClassExamServiceImpl extends ServiceImpl<ClassExamDao, ClassExam> i
|
|||||||
return classExamUser;
|
return classExamUser;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Object getExamPaperInfo(Map<String, Object> params) {
|
||||||
|
List<ClassExamUser> classExamUserList = classExamUserDao.selectList(new LambdaQueryWrapper<ClassExamUser>()
|
||||||
|
.eq(ClassExamUser::getClassId,params.get("classId")).eq(ClassExamUser::getUserId,params.get("userId")));
|
||||||
|
return classExamUserList;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user