From 7bce58884d0f897362d34681817e4d2af80c2182 Mon Sep 17 00:00:00 2001 From: wangxy <1481820854@qq.com> Date: Fri, 8 Nov 2024 10:33:44 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E7=80=9A=E9=AB=98=E9=80=82=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/ruoyi/web/controller/manager/PaperManager.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/manager/PaperManager.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/manager/PaperManager.java index c5061fb..2888dbe 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/manager/PaperManager.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/manager/PaperManager.java @@ -459,6 +459,7 @@ public class PaperManager { }else { if(objScore>=paper.getQualifyScore()){ // 同步保存考试成绩 + userExamManager.joinResult(paper.getUserId(), paper.getExamId(), objScore, 1); }else{ userExamManager.joinResult(paper.getUserId(), paper.getExamId(), objScore, 0); } @@ -481,7 +482,7 @@ public class PaperManager { List list = Convert.toList(PaperQuDTO.class, paperQus); for(PaperQuDTO qu: list){ // 主观题和对的都不加入错题库 - if(Boolean.TRUE.equals(qu.getIsRight())){ + if(Objects.equals(1,qu.getIsRight())){ continue; } //加入错题本