|
@@ -2427,11 +2427,11 @@
|
|
|
LEFT JOIN organization o ON cs.organ_id_=o.id_
|
|
|
LEFT JOIN course_schedule_teacher_salary csts ON csts.course_schedule_id_ = cs.id_
|
|
|
left join teacher_attendance ta on ta.course_schedule_id_ = cs.id_
|
|
|
- <if test="searchType == 'ERR_ATTENDANCE'">
|
|
|
+ <if test="searchType == 'TEACHER_ERR_ATTENDANCE' or searchType == 'STUDENT_ERR_ATTENDANCE'">
|
|
|
LEFT JOIN course_schedule_student_payment cssp ON cssp.course_schedule_id_ = cs.id_
|
|
|
</if>
|
|
|
LEFT JOIN student_attendance sa ON sa.course_schedule_id_ = cs.id_
|
|
|
- <if test="searchType == 'ERR_ATTENDANCE'">
|
|
|
+ <if test="searchType == 'TEACHER_ERR_ATTENDANCE' or searchType == 'STUDENT_ERR_ATTENDANCE'">
|
|
|
AND cssp.user_id_ = sa.user_id_
|
|
|
</if>
|
|
|
<include refid="endFindCourseSchedulesCondition"/>
|
|
@@ -2455,7 +2455,7 @@
|
|
|
LEFT JOIN course_schedule_student_payment cssp ON cssp.course_schedule_id_ = cs.id_
|
|
|
</if>
|
|
|
LEFT JOIN student_attendance sa ON sa.course_schedule_id_ = cs.id_
|
|
|
- <if test="searchType == 'ERR_ATTENDANCE' or searchType == 'STUDENT_ERR_ATTENDANCE'">
|
|
|
+ <if test="searchType == 'TEACHER_ERR_ATTENDANCE' or searchType == 'STUDENT_ERR_ATTENDANCE'">
|
|
|
AND cssp.user_id_ = sa.user_id_
|
|
|
</if>
|
|
|
LEFT JOIN teacher_attendance ta on ta.course_schedule_id_ = cs.id_
|