From 8d42b23c07433f11cb0b1e16d9c74b0e29fd35ce Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期五, 05 七月 2024 09:57:42 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/dev' into dev
---
src/main/resources/mapper/ExamPaperScoreMapper.xml | 13 ++++++-------
1 files changed, 6 insertions(+), 7 deletions(-)
diff --git a/src/main/resources/mapper/ExamPaperScoreMapper.xml b/src/main/resources/mapper/ExamPaperScoreMapper.xml
index cc85278..0c24845 100644
--- a/src/main/resources/mapper/ExamPaperScoreMapper.xml
+++ b/src/main/resources/mapper/ExamPaperScoreMapper.xml
@@ -45,13 +45,13 @@
<select id="studentPage" resultType="com.ycl.jxkg.domain.vo.student.exampaper.ExamPaperAnswerPageResponseVO">
SELECT
a.*,
- ep.name as paperName
+ ep.name AS paperName
FROM t_exam_paper_score a
INNER JOIN t_exam_paper ep ON ep.id = paper_id AND ep.deleted = 0
<where>
- and user_id = #{createUser}
+ AND user_id = #{createUser}
<if test="examName != null and examName != ''">
- and INSTR(exam_name, #{examName})
+ AND INSTR(exam_name, #{examName})
</if>
</where>
</select>
@@ -97,7 +97,7 @@
<select id="adminPage" resultType="com.ycl.jxkg.domain.vo.student.exampaper.ExamPaperAnswerPageResponseVO">
SELECT
- a.*, b.real_name AS userName, c.name as paperName
+ a.id, a.exam_name, a.score, a.total_score, a.question_correct, a.question_count, a.do_time, a.status, a.submit_time, b.real_name AS userName, c.name as paperName
FROM t_exam_paper_score a
INNER JOIN t_user b ON a.user_id = b.id AND b.deleted = 0
INNER JOIN t_exam_paper c ON a.paper_id = c.id AND c.deleted = 0
@@ -121,15 +121,14 @@
b.name AS subjectName,
c.real_name AS userName,
IFNULL(COUNT(DISTINCT d.id), 0) AS personAnswerNum,
- IFNULL(COUNT(DISTINCT f.id), 0) AS personTotalNum,
+ IFNULL(COUNT(DISTINCT e.id), 0) AS personTotalNum,
t.exam_name
FROM t_exam_paper a
INNER JOIN t_exam t ON a.id = t.exam_paper_id AND t.deleted = 0
LEFT JOIN t_subject b ON a.subject_id = b.id AND b.deleted = 0
LEFT JOIN t_user c ON t.teacher_id = c.id AND c.deleted = 0
LEFT JOIN t_exam_paper_score d ON t.id = d.exam_id
- LEFT JOIN t_exam_paper_classes e ON a.id = e.exam_paper_id
- LEFT JOIN t_classes_user f ON e.classes_id = f.classes_id
+ LEFT JOIN t_classes_user e ON t.classes_id = e.classes_id
<where>
a.deleted = 0
<if test="subjectId != null and subjectId.size() > 0">
--
Gitblit v1.8.0