From 14821e28286d773ad5ff2c13510e39c5eb117daf Mon Sep 17 00:00:00 2001
From: kongzy <kongzy>
Date: 星期五, 05 七月 2024 13:46:32 +0800
Subject: [PATCH] update

---
 exam-system/src/main/java/com/gkhy/exam/system/service/impl/ExPaperStudentServiceImpl.java |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/exam-system/src/main/java/com/gkhy/exam/system/service/impl/ExPaperStudentServiceImpl.java b/exam-system/src/main/java/com/gkhy/exam/system/service/impl/ExPaperStudentServiceImpl.java
index a4f1643..cd57bf4 100644
--- a/exam-system/src/main/java/com/gkhy/exam/system/service/impl/ExPaperStudentServiceImpl.java
+++ b/exam-system/src/main/java/com/gkhy/exam/system/service/impl/ExPaperStudentServiceImpl.java
@@ -128,14 +128,14 @@
 
     @Override
     public int deletePaperStudent(Long paperStudentId) {
-        ExPaperStudent paperStudent=baseMapper.selectPaperStudentById(paperStudentId);
+        ExPaperStudent paperStudent=baseMapper.selectSimplePaperStudentById(paperStudentId);
         if(ObjectUtil.isNull(paperStudent)){
-            throw new ApiException(String.format("该试卷下不存在该学员<>",paperStudent.getStudentName()));
+            throw new ApiException("学员与试卷关系不存在");
         }
         checkUserAllowed(paperStudent);
         int studentAnswerCount=studentAnswerMapper.countByPaperId(paperStudent.getPaperId(),paperStudent.getStudentId());
         if(studentAnswerCount>0){
-            throw new ApiException(String.format("学员<%s>已进行答题,不能删除",paperStudent.getStudentName()));
+            throw new ApiException("学员已进行答题,不能删除");
         }
         //删除学员与试卷关系
         return baseMapper.deleteById(paperStudentId);

--
Gitblit v1.9.2