|
@@ -35,6 +35,7 @@
|
|
|
|
|
|
<select id="getCountByScoreRange" resultType="int">
|
|
<select id="getCountByScoreRange" resultType="int">
|
|
SELECT count(1) FROM t_c_final_score tcfs
|
|
SELECT count(1) FROM t_c_final_score tcfs
|
|
|
|
+ join t_c_usual_score tcus on tcfs.course_id = tcus.course_id and tcfs.culture_program_id = tcus.culture_program_id and tcfs.student_code = tcus.student_code
|
|
<where>
|
|
<where>
|
|
<if test="cultureProgramId != null and cultureProgramId != ''">
|
|
<if test="cultureProgramId != null and cultureProgramId != ''">
|
|
and tcfs.culture_program_id = #{cultureProgramId}
|
|
and tcfs.culture_program_id = #{cultureProgramId}
|
|
@@ -42,8 +43,8 @@
|
|
<if test="courseId != null and courseId != ''">
|
|
<if test="courseId != null and courseId != ''">
|
|
and tcfs.course_id = #{courseId}
|
|
and tcfs.course_id = #{courseId}
|
|
</if>
|
|
</if>
|
|
- and tcfs.score >= #{start} and tcfs.score <= #{end}
|
|
|
|
- and tcfs.enable = true
|
|
|
|
|
|
+ and tcfs.score >= #{start} and tcfs.score <= #{end}
|
|
|
|
+ and tcfs.enable = true and tcus.enable = true
|
|
</where>
|
|
</where>
|
|
</select>
|
|
</select>
|
|
|
|
|