|
@@ -14,96 +14,98 @@
|
|
</if>
|
|
</if>
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
- <select id="selectTeachCollegeList" resultType="com.qmth.teachcloud.report.business.bean.result.TBExamStudentResult">
|
|
|
|
|
|
+ <select id="selectTeachCollegeList"
|
|
|
|
+ resultType="com.qmth.teachcloud.report.business.bean.result.TBExamStudentResult">
|
|
select
|
|
select
|
|
- DISTINCT tbes.teach_college_id as teachCollegeId,
|
|
|
|
- so.name as teachCollegeName,
|
|
|
|
- so.code as teachCollegeCode
|
|
|
|
|
|
+ DISTINCT tbes.teach_college_id as teachCollegeId,
|
|
|
|
+ so.name as teachCollegeName,
|
|
|
|
+ so.code as teachCollegeCode
|
|
from
|
|
from
|
|
- t_b_exam_student tbes
|
|
|
|
|
|
+ t_b_exam_student tbes
|
|
join sys_org so on
|
|
join sys_org so on
|
|
- so.id = tbes.teach_college_id
|
|
|
|
|
|
+ so.id = tbes.teach_college_id
|
|
<where>
|
|
<where>
|
|
- <include refid="conditionSql" />
|
|
|
|
|
|
+ <include refid="conditionSql"/>
|
|
</where>
|
|
</where>
|
|
</select>
|
|
</select>
|
|
|
|
|
|
- <select id="selectInspectCollegeList" resultType="com.qmth.teachcloud.report.business.bean.result.TBExamStudentResult">
|
|
|
|
|
|
+ <select id="selectInspectCollegeList"
|
|
|
|
+ resultType="com.qmth.teachcloud.report.business.bean.result.TBExamStudentResult">
|
|
select
|
|
select
|
|
- DISTINCT tbes.inspect_college_id as inspectCollegeId,
|
|
|
|
- so.name as inspectCollegeName,
|
|
|
|
- so.code as inspectCollegeCode
|
|
|
|
|
|
+ DISTINCT tbes.inspect_college_id as inspectCollegeId,
|
|
|
|
+ so.name as inspectCollegeName,
|
|
|
|
+ so.code as inspectCollegeCode
|
|
from
|
|
from
|
|
- t_b_exam_student tbes
|
|
|
|
|
|
+ t_b_exam_student tbes
|
|
join sys_org so on
|
|
join sys_org so on
|
|
- so.id = tbes.inspect_college_id
|
|
|
|
|
|
+ so.id = tbes.inspect_college_id
|
|
<where>
|
|
<where>
|
|
- <include refid="conditionSql" />
|
|
|
|
|
|
+ <include refid="conditionSql"/>
|
|
</where>
|
|
</where>
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="selectTeachList" resultType="com.qmth.teachcloud.report.business.bean.result.TBExamStudentResult">
|
|
<select id="selectTeachList" resultType="com.qmth.teachcloud.report.business.bean.result.TBExamStudentResult">
|
|
select
|
|
select
|
|
- DISTINCT tbes.teacher_id as teacherId,
|
|
|
|
- su.real_name as teachName
|
|
|
|
|
|
+ DISTINCT tbes.teacher_id as teacherId,
|
|
|
|
+ su.real_name as teachName
|
|
from
|
|
from
|
|
- t_b_exam_student tbes
|
|
|
|
|
|
+ t_b_exam_student tbes
|
|
join sys_user su on
|
|
join sys_user su on
|
|
- su.id = tbes.teacher_id
|
|
|
|
|
|
+ su.id = tbes.teacher_id
|
|
<where>
|
|
<where>
|
|
- <include refid="conditionSql" />
|
|
|
|
|
|
+ <include refid="conditionSql"/>
|
|
</where>
|
|
</where>
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="selectClassList" resultType="com.qmth.teachcloud.report.business.bean.result.TBExamStudentResult">
|
|
<select id="selectClassList" resultType="com.qmth.teachcloud.report.business.bean.result.TBExamStudentResult">
|
|
select
|
|
select
|
|
- DISTINCT tbes.clazz_id as clazzId,
|
|
|
|
- tbsc.clazz_name as clazzName,
|
|
|
|
- tbsc.clazz_code as clazzCode
|
|
|
|
|
|
+ DISTINCT tbes.clazz_id as clazzId,
|
|
|
|
+ tbsc.clazz_name as clazzName,
|
|
|
|
+ tbsc.clazz_code as clazzCode
|
|
from
|
|
from
|
|
- t_b_exam_student tbes
|
|
|
|
|
|
+ t_b_exam_student tbes
|
|
join t_b_school_clazz tbsc on
|
|
join t_b_school_clazz tbsc on
|
|
- tbsc.id = tbes.clazz_id
|
|
|
|
|
|
+ tbsc.id = tbes.clazz_id
|
|
<where>
|
|
<where>
|
|
- <include refid="conditionSql" />
|
|
|
|
|
|
+ <include refid="conditionSql"/>
|
|
</where>
|
|
</where>
|
|
</select>
|
|
</select>
|
|
<select id="listTeachCollegeResult"
|
|
<select id="listTeachCollegeResult"
|
|
resultType="com.qmth.teachcloud.report.business.bean.result.TeachCollegeResult">
|
|
resultType="com.qmth.teachcloud.report.business.bean.result.TeachCollegeResult">
|
|
SELECT
|
|
SELECT
|
|
- d.semester,
|
|
|
|
- d.exam_name examName,
|
|
|
|
- a.course_code courseCode,
|
|
|
|
- a.course_name courseName,
|
|
|
|
- a.ticket_number ticketNumber,
|
|
|
|
- a.student_code studentCode,
|
|
|
|
- a.name,
|
|
|
|
- case a.current when true then '应届' else '非应届' end as current,
|
|
|
|
- b.objective_score objectiveScore,
|
|
|
|
- b.subjective_score subjectiveScore,
|
|
|
|
- b.total_score totalScore,
|
|
|
|
- c.assigned_score assignedScore,
|
|
|
|
- e.clazz_code clazzCode,
|
|
|
|
- e.clazz_name clazzName,
|
|
|
|
- f.college_name teachCollegeName,
|
|
|
|
- g.college_name inspectCollegeName,
|
|
|
|
- h.teacher_name teacherName
|
|
|
|
|
|
+ d.semester,
|
|
|
|
+ d.exam_name examName,
|
|
|
|
+ a.course_code courseCode,
|
|
|
|
+ a.course_name courseName,
|
|
|
|
+ a.ticket_number ticketNumber,
|
|
|
|
+ a.student_code studentCode,
|
|
|
|
+ a.name,
|
|
|
|
+ case a.current when true then '应届' else '非应届' end as current,
|
|
|
|
+ b.objective_score objectiveScore,
|
|
|
|
+ b.subjective_score subjectiveScore,
|
|
|
|
+ b.total_score totalScore,
|
|
|
|
+ c.assigned_score assignedScore,
|
|
|
|
+ e.clazz_code clazzCode,
|
|
|
|
+ e.clazz_name clazzName,
|
|
|
|
+ f.college_name teachCollegeName,
|
|
|
|
+ g.college_name inspectCollegeName,
|
|
|
|
+ h.teacher_name teacherName
|
|
FROM
|
|
FROM
|
|
- t_b_exam_student a
|
|
|
|
- LEFT JOIN
|
|
|
|
- t_b_exam_record b ON a.id = b.exam_student_id
|
|
|
|
- LEFT JOIN
|
|
|
|
- t_a_exam_course_record c ON b.id = c.exam_record_id
|
|
|
|
- LEFT JOIN
|
|
|
|
- t_b_exam d ON a.exam_id = d.id
|
|
|
|
- LEFT JOIN
|
|
|
|
- t_b_school_clazz e ON a.clazz_id = e.id
|
|
|
|
- LEFT JOIN
|
|
|
|
- t_b_school_college f ON a.teach_college_id = f.id
|
|
|
|
- LEFT JOIN
|
|
|
|
- t_b_school_college g ON a.inspect_college_id = g.id
|
|
|
|
- LEFT JOIN
|
|
|
|
- t_b_school_teacher h ON a.teacher_id = h.id
|
|
|
|
|
|
+ t_b_exam_student a
|
|
|
|
+ LEFT JOIN
|
|
|
|
+ t_b_exam_record b ON a.id = b.exam_student_id
|
|
|
|
+ LEFT JOIN
|
|
|
|
+ t_a_exam_course_record c ON b.id = c.exam_record_id
|
|
|
|
+ LEFT JOIN
|
|
|
|
+ t_b_exam d ON a.exam_id = d.id
|
|
|
|
+ LEFT JOIN
|
|
|
|
+ t_b_school_clazz e ON a.clazz_id = e.id
|
|
|
|
+ LEFT JOIN
|
|
|
|
+ t_b_school_college f ON a.teach_college_id = f.id
|
|
|
|
+ LEFT JOIN
|
|
|
|
+ t_b_school_college g ON a.inspect_college_id = g.id
|
|
|
|
+ LEFT JOIN
|
|
|
|
+ t_b_school_teacher h ON a.teacher_id = h.id
|
|
<where>
|
|
<where>
|
|
and d.school_id = #{schoolId}
|
|
and d.school_id = #{schoolId}
|
|
<if test="semester != null and semester != ''">
|
|
<if test="semester != null and semester != ''">
|
|
@@ -134,36 +136,36 @@
|
|
<select id="listInspectCollegeResult"
|
|
<select id="listInspectCollegeResult"
|
|
resultType="com.qmth.teachcloud.report.business.bean.result.InspectCollegeResult">
|
|
resultType="com.qmth.teachcloud.report.business.bean.result.InspectCollegeResult">
|
|
SELECT
|
|
SELECT
|
|
- d.semester,
|
|
|
|
- d.exam_name examName,
|
|
|
|
- a.course_code courseCode,
|
|
|
|
- a.course_name courseName,
|
|
|
|
- a.ticket_number ticketNumber,
|
|
|
|
- a.student_code studentCode,
|
|
|
|
- a.name,
|
|
|
|
- case a.current when true then '应届' else '非应届' end as current,
|
|
|
|
- c.assigned_score assignedScore,
|
|
|
|
- e.clazz_code clazzCode,
|
|
|
|
- e.clazz_name clazzName,
|
|
|
|
- f.college_name teachCollegeName,
|
|
|
|
- g.college_name inspectCollegeName,
|
|
|
|
- h.teacher_name teacherName
|
|
|
|
|
|
+ d.semester,
|
|
|
|
+ d.exam_name examName,
|
|
|
|
+ a.course_code courseCode,
|
|
|
|
+ a.course_name courseName,
|
|
|
|
+ a.ticket_number ticketNumber,
|
|
|
|
+ a.student_code studentCode,
|
|
|
|
+ a.name,
|
|
|
|
+ case a.current when true then '应届' else '非应届' end as current,
|
|
|
|
+ c.assigned_score assignedScore,
|
|
|
|
+ e.clazz_code clazzCode,
|
|
|
|
+ e.clazz_name clazzName,
|
|
|
|
+ f.college_name teachCollegeName,
|
|
|
|
+ g.college_name inspectCollegeName,
|
|
|
|
+ h.teacher_name teacherName
|
|
FROM
|
|
FROM
|
|
- t_b_exam_student a
|
|
|
|
- LEFT JOIN
|
|
|
|
- t_b_exam_record b ON a.id = b.exam_student_id
|
|
|
|
- LEFT JOIN
|
|
|
|
- t_a_exam_course_record c ON b.id = c.exam_record_id
|
|
|
|
- LEFT JOIN
|
|
|
|
- t_b_exam d ON a.exam_id = d.id
|
|
|
|
- LEFT JOIN
|
|
|
|
- t_b_school_clazz e ON a.clazz_id = e.id
|
|
|
|
- LEFT JOIN
|
|
|
|
- t_b_school_college f ON a.teach_college_id = f.id
|
|
|
|
- LEFT JOIN
|
|
|
|
- t_b_school_college g ON a.inspect_college_id = g.id
|
|
|
|
- LEFT JOIN
|
|
|
|
- t_b_school_teacher h ON a.teacher_id = h.id
|
|
|
|
|
|
+ t_b_exam_student a
|
|
|
|
+ LEFT JOIN
|
|
|
|
+ t_b_exam_record b ON a.id = b.exam_student_id
|
|
|
|
+ LEFT JOIN
|
|
|
|
+ t_a_exam_course_record c ON b.id = c.exam_record_id
|
|
|
|
+ LEFT JOIN
|
|
|
|
+ t_b_exam d ON a.exam_id = d.id
|
|
|
|
+ LEFT JOIN
|
|
|
|
+ t_b_school_clazz e ON a.clazz_id = e.id
|
|
|
|
+ LEFT JOIN
|
|
|
|
+ t_b_school_college f ON a.teach_college_id = f.id
|
|
|
|
+ LEFT JOIN
|
|
|
|
+ t_b_school_college g ON a.inspect_college_id = g.id
|
|
|
|
+ LEFT JOIN
|
|
|
|
+ t_b_school_teacher h ON a.teacher_id = h.id
|
|
<where>
|
|
<where>
|
|
and d.school_id = #{schoolId}
|
|
and d.school_id = #{schoolId}
|
|
<if test="semester != null and semester != ''">
|
|
<if test="semester != null and semester != ''">
|
|
@@ -191,4 +193,8 @@
|
|
</if>
|
|
</if>
|
|
</where>
|
|
</where>
|
|
</select>
|
|
</select>
|
|
|
|
+
|
|
|
|
+ <select id="reportList" resultType="com.qmth.teachcloud.report.business.bean.result.TBStudentReportResult">
|
|
|
|
+
|
|
|
|
+ </select>
|
|
</mapper>
|
|
</mapper>
|