From b07c5097695a1e11f1faf45fef17e931a571024c Mon Sep 17 00:00:00 2001 From: wuchunlei Date: Fri, 7 Nov 2025 14:01:43 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=9F=E6=88=90=E8=AF=95=E5=8D=B7=E6=97=B6ri?= =?UTF-8?q?ght=5Fwrong=E6=94=B9=E4=B8=BArightWrong?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/common/service/impl/ClassExamServiceImpl.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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);