From 0ab28b6d88d1bbdfe63b47f39ecc136fd81a8b4c Mon Sep 17 00:00:00 2001 From: "DESKTOP-932OMT8\\REN" Date: Wed, 4 Jun 2025 11:48:35 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BF=AE=E6=94=B9=E3=80=91=20?= =?UTF-8?q?=E9=80=89=E6=8B=A9=E9=A2=98=E6=9C=AA=E9=80=89=E4=B9=9F=E7=BB=A7?= =?UTF-8?q?=E7=BB=AD=E8=AE=B0=E5=BD=95=E5=BD=92=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../module/exam/dal/mysql/student/StuPaperScoreMapper.java | 2 ++ .../exam/service/stuPaperScore/StuPaperScoreService.java | 2 ++ .../exam/service/stuPaperScore/StuPaperScoreServiceImpl.java | 5 +++++ .../main/resources/mapper/student/StuPaperScoreMapper.xml | 3 +++ .../controller/admin/autoTools/AutoToolsController.java | 1 - 5 files changed, 12 insertions(+), 1 deletion(-) 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 df00104d..e09cdfee 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 @@ -22,4 +22,6 @@ public interface StuPaperScoreMapper extends BaseMapperX { // 通过学生ID,试卷ID ,试题ID,查询数据 StuPaperScoreDO findByStuIdAndPaperIdAndQuestionId(@Param("stuId") Long stuId, @Param("paperId") String paperId, @Param("quId") String questionId); + + void deleteByStuIdAndPaperId(@Param("stuId") Long stuId, @Param("paperId") String paperId); } \ No newline at end of file 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 9947e4ab..97be40c4 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 @@ -22,4 +22,6 @@ public interface StuPaperScoreService { StuScoreVo getStuScore(Long stuId, String paperId); StuPaperScoreDO getStuScoreByPaperIdAndQuid(Long stuId, String paperId, String quId); + + void deleteStuPaperScore(Long stuId, String paperId); } \ No newline at end of file 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 9f2af125..ea06882e 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 @@ -76,4 +76,9 @@ public class StuPaperScoreServiceImpl implements StuPaperScoreService { public StuPaperScoreDO getStuScoreByPaperIdAndQuid(Long stuId, String paperId, String quId) { return stuPaperScoreMapper.findByStuIdAndPaperIdAndQuestionId(stuId, paperId, quId); } + + @Override + public void deleteStuPaperScore(Long stuId, String paperId) { + stuPaperScoreMapper.deleteByStuIdAndPaperId(stuId, paperId); + } } \ No newline at end of file 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 959038aa..9543f75b 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 @@ -30,6 +30,9 @@ + + DELETE FROM exam_stu_paper_score WHERE stu_id = #{stuId} AND paper_id = #{paperId} + \ No newline at end of file diff --git a/exam-module-judgement/exam-module-judgement-biz/src/main/java/pc/exam/pp/module/judgement/controller/admin/autoTools/AutoToolsController.java b/exam-module-judgement/exam-module-judgement-biz/src/main/java/pc/exam/pp/module/judgement/controller/admin/autoTools/AutoToolsController.java index aaeb691c..8912d71a 100644 --- a/exam-module-judgement/exam-module-judgement-biz/src/main/java/pc/exam/pp/module/judgement/controller/admin/autoTools/AutoToolsController.java +++ b/exam-module-judgement/exam-module-judgement-biz/src/main/java/pc/exam/pp/module/judgement/controller/admin/autoTools/AutoToolsController.java @@ -93,5 +93,4 @@ public class AutoToolsController { stuPaperScoreInfoVos.setExamQuestionList(examQuestionList); return CommonResult.success(stuPaperScoreInfoVos); } - }