diff --git a/src/main/java/com/peanut/modules/common/service/impl/ClassExamServiceImpl.java b/src/main/java/com/peanut/modules/common/service/impl/ClassExamServiceImpl.java index 56e14036..ab91d6b0 100644 --- a/src/main/java/com/peanut/modules/common/service/impl/ClassExamServiceImpl.java +++ b/src/main/java/com/peanut/modules/common/service/impl/ClassExamServiceImpl.java @@ -242,8 +242,9 @@ public class ClassExamServiceImpl extends ServiceImpl i if (resultList.size()>0){ for (Map subject:resultList) { answerList.add("");//预留答案位置 - List> options = classExamOptionDao.selectMaps(new LambdaQueryWrapper() - .select(ClassExamOption::getId,ClassExamOption::getContent,ClassExamOption::getRightWrong) + List> options = classExamOptionDao.selectMaps(new MPJLambdaWrapper() + .select(ClassExamOption::getId,ClassExamOption::getContent) + .selectAs(ClassExamOption::getRightWrong,"rightWrong") .eq(ClassExamOption::getSubjectId,subject.get("id"))); Collections.shuffle(options);//打乱顺序 subject.put("options",options);