| | |
| | | <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> |
| | |
| | | |
| | | <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 |
| | |
| | | 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"> |