|
@@ -124,46 +124,40 @@
|
|
|
|
|
|
<select id="findTeacherInfo" resultType="com.qmth.teachcloud.report.business.bean.result.TAExamCourseTeacherResult">
|
|
|
SELECT
|
|
|
- col.teacher_name AS teacherName,
|
|
|
- col.reality_count AS colRealityCount,
|
|
|
- col.total_count AS colTotalCount,
|
|
|
- col.absent_count AS colAbsentCount,
|
|
|
- round(convert(col.min_score_assign , decimal(10, 4)), 2) AS colMinScore,
|
|
|
- round(convert(col.max_score_assign , decimal(10, 4)), 2) AS colMaxScore,
|
|
|
- round(convert(col.avg_score_assign , decimal(10, 4)), 2) AS colAvgScore,
|
|
|
- round(convert(col.upper_quartile, decimal(10, 4)), 2) AS colUpperQuartile,
|
|
|
- round(convert(col.median, decimal(10, 4)), 2) AS colMedian,
|
|
|
- round(convert(col.lower_quartile, decimal(10, 4)), 2) AS colLowerQuartile,
|
|
|
- col.mode AS colMode,
|
|
|
- round(convert(col.standard_deviation, decimal(10, 4)), 2) AS colStandardDeviation,
|
|
|
- round(convert(col.relative_position, decimal(10, 4)), 2) AS colRelativePosition,
|
|
|
- sch.reality_count AS schRealityCount,
|
|
|
- sch.total_count AS schTotalCount,
|
|
|
- sch.absent_count AS schAbsentCount,
|
|
|
- round(convert(sch.min_score, decimal(10, 4)), 2) AS schMinScore,
|
|
|
- round(convert(sch.max_score, decimal(10, 4)), 2) AS schMaxScore,
|
|
|
- round(convert(sch.avg_score, decimal(10, 4)), 2) AS schAvgScore,
|
|
|
- round(convert(sch.upper_quartile, decimal(10, 4)), 2) AS schUpperQuartile,
|
|
|
- round(convert(sch.median, decimal(10, 4)), 2) AS schMedian,
|
|
|
- round(convert(sch.lower_quartile, decimal(10, 4)), 2) AS schLowerQuartile,
|
|
|
- sch.mode AS schMode,
|
|
|
- round(convert(sch.standard_deviation, decimal(10, 4)), 2) AS schStandardDeviation,
|
|
|
- round(convert(sch.relative_position, decimal(10, 4)), 2) AS schRelativePosition
|
|
|
+ teacher_name AS teacherName,
|
|
|
+ reality_count AS colRealityCount,
|
|
|
+ total_count AS colTotalCount,
|
|
|
+ absent_count AS colAbsentCount,
|
|
|
+ ROUND(CONVERT( min_score_assign , DECIMAL (10 , 4 )),2) AS colMinScore,
|
|
|
+ ROUND(CONVERT( max_score_assign , DECIMAL (10 , 4 )),2) AS colMaxScore,
|
|
|
+ ROUND(CONVERT( avg_score_assign , DECIMAL (10 , 4 )),2) AS colAvgScore,
|
|
|
+ ROUND(CONVERT( upper_quartile , DECIMAL (10 , 4 )),2) AS colUpperQuartile,
|
|
|
+ ROUND(CONVERT( median , DECIMAL (10 , 4 )), 2) AS colMedian,
|
|
|
+ ROUND(CONVERT( lower_quartile , DECIMAL (10 , 4 )),2) AS colLowerQuartile,
|
|
|
+ mode AS colMode,
|
|
|
+ ROUND(CONVERT( standard_deviation , DECIMAL (10 , 4 )),2) AS colStandardDeviation,
|
|
|
+ ROUND(CONVERT( relative_position , DECIMAL (10 , 4 )),2) AS colRelativePosition,
|
|
|
+ other_college_reality_count AS schRealityCount,
|
|
|
+ other_college_total_count AS schTotalCount,
|
|
|
+ other_college_absent_count AS schAbsentCount,
|
|
|
+ ROUND(CONVERT( other_college_min_score_assign , DECIMAL (10 , 4 )),2) AS schMinScore,
|
|
|
+ ROUND(CONVERT( other_college_max_score_assign , DECIMAL (10 , 4 )),2) AS schMaxScore,
|
|
|
+ ROUND(CONVERT( other_college_avg_score_assign , DECIMAL (10 , 4 )),2) AS schAvgScore,
|
|
|
+ ROUND(CONVERT( other_college_upper_quartile , DECIMAL (10 , 4 )),2) AS schUpperQuartile,
|
|
|
+ ROUND(CONVERT( other_college_median , DECIMAL (10 , 4 )),2) AS schMedian,
|
|
|
+ ROUND(CONVERT( other_college_lower_quartile , DECIMAL (10 , 4 )),2) AS schLowerQuartile,
|
|
|
+ other_college_mode AS schMode
|
|
|
FROM
|
|
|
- t_a_exam_course_college_teacher col
|
|
|
- INNER JOIN t_a_exam_course_teacher sch ON
|
|
|
- col.exam_id = sch.exam_id
|
|
|
- AND col.course_code = sch.course_code
|
|
|
- AND col.teacher_name = sch.teacher_name
|
|
|
+ t_a_exam_course_college_teacher
|
|
|
<where>
|
|
|
<if test="examId != null and examId != ''">
|
|
|
- and col.exam_id = #{examId}
|
|
|
+ and exam_id = #{examId}
|
|
|
</if>
|
|
|
<if test="courseCode != null and courseCode != ''">
|
|
|
- and col.course_code = #{courseCode}
|
|
|
+ and course_code = #{courseCode}
|
|
|
</if>
|
|
|
<if test="collegeId != null and collegeId != ''">
|
|
|
- and col.inspect_college_id = #{collegeId}
|
|
|
+ and inspect_college_id = #{collegeId}
|
|
|
</if>
|
|
|
</where>
|
|
|
</select>
|