diff --git a/exam-module-exam/exam-module-exam-biz/src/main/java/pc/exam/pp/module/exam/dal/mysql/student/StuPaperScoreMapper.java b/exam-module-exam/exam-module-exam-biz/src/main/java/pc/exam/pp/module/exam/dal/mysql/student/StuPaperScoreMapper.java index a165f2c6..cc7f88cc 100644 --- a/exam-module-exam/exam-module-exam-biz/src/main/java/pc/exam/pp/module/exam/dal/mysql/student/StuPaperScoreMapper.java +++ b/exam-module-exam/exam-module-exam-biz/src/main/java/pc/exam/pp/module/exam/dal/mysql/student/StuPaperScoreMapper.java @@ -18,7 +18,7 @@ public interface StuPaperScoreMapper extends BaseMapperX { List findByStuIdAndPaperId(@Param("stuId") Long stuId, @Param("paperId") String paperId, @Param("temporaryId") String temporaryId); - List getStuScore(@Param("stuId") Long stuId, @Param("paperId") String paperId); + List getStuScore(@Param("stuId") Long stuId, @Param("paperId") String paperId, @Param("temporaryId") String temporaryId); // 通过学生ID,试卷ID ,试题ID,查询数据 StuPaperScoreDO findByStuIdAndPaperIdAndQuestionId(@Param("stuId") Long stuId, @Param("paperId") String paperId, @Param("quId") String questionId); diff --git a/exam-module-exam/exam-module-exam-biz/src/main/java/pc/exam/pp/module/exam/service/stuPaperScore/StuPaperScoreService.java b/exam-module-exam/exam-module-exam-biz/src/main/java/pc/exam/pp/module/exam/service/stuPaperScore/StuPaperScoreService.java index 4b61ec8a..d36054f9 100644 --- a/exam-module-exam/exam-module-exam-biz/src/main/java/pc/exam/pp/module/exam/service/stuPaperScore/StuPaperScoreService.java +++ b/exam-module-exam/exam-module-exam-biz/src/main/java/pc/exam/pp/module/exam/service/stuPaperScore/StuPaperScoreService.java @@ -19,7 +19,7 @@ public interface StuPaperScoreService { void updateStuPaperScore(StuPaperScoreDO stuPaperScoreDO); - StuScoreVo getStuScore(Long stuId, String paperId); + StuScoreVo getStuScore(Long stuId, String paperId, String temporaryId); StuPaperScoreDO getStuScoreByPaperIdAndQuid(Long stuId, String paperId, String quId); diff --git a/exam-module-exam/exam-module-exam-biz/src/main/java/pc/exam/pp/module/exam/service/stuPaperScore/StuPaperScoreServiceImpl.java b/exam-module-exam/exam-module-exam-biz/src/main/java/pc/exam/pp/module/exam/service/stuPaperScore/StuPaperScoreServiceImpl.java index f3b300fb..c75cfaac 100644 --- a/exam-module-exam/exam-module-exam-biz/src/main/java/pc/exam/pp/module/exam/service/stuPaperScore/StuPaperScoreServiceImpl.java +++ b/exam-module-exam/exam-module-exam-biz/src/main/java/pc/exam/pp/module/exam/service/stuPaperScore/StuPaperScoreServiceImpl.java @@ -42,7 +42,7 @@ public class StuPaperScoreServiceImpl implements StuPaperScoreService { } @Override - public StuScoreVo getStuScore(Long stuId, String paperId) { + public StuScoreVo getStuScore(Long stuId, String paperId, String temporaryId) { // 1、创建对象 StuScoreVo stuScoreVo = new StuScoreVo(); // 2、查询学生得分 @@ -52,7 +52,7 @@ public class StuPaperScoreServiceImpl implements StuPaperScoreService { String nickName = ""; String taskId = ""; String picUrl = ""; - List stuScoreVos = stuPaperScoreMapper.getStuScore(stuId, paperId); + List stuScoreVos = stuPaperScoreMapper.getStuScore(stuId, paperId, temporaryId); for (StuScoreVo scoreVo : stuScoreVos) { stuNumber = scoreVo.getStuNumber(); nickName = scoreVo.getNickName(); diff --git a/exam-module-exam/exam-module-exam-biz/src/main/resources/mapper/student/StuPaperScoreMapper.xml b/exam-module-exam/exam-module-exam-biz/src/main/resources/mapper/student/StuPaperScoreMapper.xml index 72eb5220..704de49b 100644 --- a/exam-module-exam/exam-module-exam-biz/src/main/resources/mapper/student/StuPaperScoreMapper.xml +++ b/exam-module-exam/exam-module-exam-biz/src/main/resources/mapper/student/StuPaperScoreMapper.xml @@ -9,23 +9,23 @@ 文档可见:https://www.iocoder.cn/MyBatis/x-plugins/ -->