|
@@ -25,10 +25,7 @@
|
|
|
LEFT JOIN basic_semester bs ON oco.semester_id = bs.id
|
|
|
LEFT JOIN sys_user su ON oco.user_id = su.id
|
|
|
LEFT JOIN obe_culture_program ocp ON ocp.id = oco.culture_program_id
|
|
|
- LEFT JOIN basic_exam_student bes on bes.course_id = oco.course_id and bes.school_id = oco.school_id and
|
|
|
- bes.semester_id = bs.id
|
|
|
- LEFT JOIN t_c_final_score tcfs on tcfs.culture_program_id = oco.culture_program_id and tcfs.course_id =
|
|
|
- oco.course_id
|
|
|
+ LEFT JOIN t_c_final_score tcfs on tcfs.culture_program_id = oco.culture_program_id and tcfs.course_id = oco.course_id
|
|
|
<where>
|
|
|
AND oco.school_id = #{schoolId}
|
|
|
<if test="cultureProgramId != null">
|
|
@@ -42,7 +39,7 @@
|
|
|
</if>
|
|
|
<if test="dpr != null">
|
|
|
<if test="dpr.requestUserId != null">
|
|
|
- AND bes.teacher_id = #{dpr.requestUserId}
|
|
|
+ AND tcfs.create_id = #{dpr.requestUserId}
|
|
|
</if>
|
|
|
<if test="dpr.courseUserId != null">
|
|
|
AND EXISTS( SELECT 1 FROM (select course_id from teach_course where user_id = #{dpr.courseUserId})
|