生成试卷时right_wrong改为rightWrong
This commit is contained in:
@@ -242,8 +242,9 @@ public class ClassExamServiceImpl extends ServiceImpl<ClassExamDao, ClassExam> i
|
||||
if (resultList.size()>0){
|
||||
for (Map<String,Object> subject:resultList) {
|
||||
answerList.add("");//预留答案位置
|
||||
List<Map<String,Object>> options = classExamOptionDao.selectMaps(new LambdaQueryWrapper<ClassExamOption>()
|
||||
.select(ClassExamOption::getId,ClassExamOption::getContent,ClassExamOption::getRightWrong)
|
||||
List<Map<String,Object>> options = classExamOptionDao.selectMaps(new MPJLambdaWrapper<ClassExamOption>()
|
||||
.select(ClassExamOption::getId,ClassExamOption::getContent)
|
||||
.selectAs(ClassExamOption::getRightWrong,"rightWrong")
|
||||
.eq(ClassExamOption::getSubjectId,subject.get("id")));
|
||||
Collections.shuffle(options);//打乱顺序
|
||||
subject.put("options",options);
|
||||
|
||||
Reference in New Issue
Block a user