|
@@ -33,4 +33,32 @@
|
|
|
</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
+
|
|
|
+ <select id="findCourseDescriptiveStatisticsForSchool" resultType="com.qmth.teachcloud.report.business.bean.result.TAExamCourseCollegeInspectResult">
|
|
|
+ SELECT
|
|
|
+ round(convert(current_min_score,decimal(10,4)),2) AS minScore,
|
|
|
+ round(convert(current_max_score,decimal(10,4)),2) AS maxScore,
|
|
|
+ round(convert(current_avg_score,decimal(10,4)),2) AS avgScore,
|
|
|
+ current_reality_count AS realityCount,
|
|
|
+ current_absent_count AS absentCount,
|
|
|
+ current_total_count AS totalCount,
|
|
|
+ round(convert(current_upper_quartile,decimal(10,4)),2) AS upperQuartile,
|
|
|
+ round(convert(current_median,decimal(10,4)),2) AS median,
|
|
|
+ round(convert(current_lower_quartile,decimal(10,4)),2) AS lowerQuartile,
|
|
|
+ current_mode,
|
|
|
+ round(convert(current_standard_deviation,decimal(10,4)),2) AS standardDeviation
|
|
|
+ FROM
|
|
|
+ t_a_exam_course taec
|
|
|
+ <where>
|
|
|
+ <if test="courseCode != null and courseCode != ''">
|
|
|
+ and taec.course_code = #{courseCode}
|
|
|
+ </if>
|
|
|
+ <if test="examId != null and examId != ''">
|
|
|
+ and taec.exam_id = #{examId}
|
|
|
+ </if>
|
|
|
+ <if test="schoolId != null and schoolId != ''">
|
|
|
+ and taec.school_id = #{schoolId}
|
|
|
+ </if>
|
|
|
+ </where>
|
|
|
+ </select>
|
|
|
</mapper>
|