|
@@ -2428,10 +2428,10 @@
|
|
|
left join teacher_attendance ta on ta.course_schedule_id_ = cs.id_
|
|
|
<if test="searchType == 'ERR_ATTENDANCE'">
|
|
|
LEFT JOIN course_schedule_student_payment cssp ON cssp.course_schedule_id_ = cs.id_
|
|
|
- LEFT JOIN student_attendance sa ON sa.course_schedule_id_ = cs.id_ AND cssp.user_id_ = sa.user_id_
|
|
|
</if>
|
|
|
- <if test="searchType != 'ERR_ATTENDANCE'">
|
|
|
- LEFT JOIN student_attendance sa ON sa.course_schedule_id_ = cs.id_
|
|
|
+ LEFT JOIN student_attendance sa ON sa.course_schedule_id_ = cs.id_
|
|
|
+ <if test="searchType == 'ERR_ATTENDANCE'">
|
|
|
+ AND cssp.user_id_ = sa.user_id_
|
|
|
</if>
|
|
|
<include refid="endFindCourseSchedulesCondition"/>
|
|
|
GROUP BY
|
|
@@ -2452,10 +2452,10 @@
|
|
|
course_schedule cs
|
|
|
<if test="searchType == 'ERR_ATTENDANCE'">
|
|
|
LEFT JOIN course_schedule_student_payment cssp ON cssp.course_schedule_id_ = cs.id_
|
|
|
- LEFT JOIN student_attendance sa ON sa.course_schedule_id_ = cs.id_ AND cssp.user_id_ = sa.user_id_
|
|
|
</if>
|
|
|
- <if test="searchType != 'ERR_ATTENDANCE'">
|
|
|
- LEFT JOIN student_attendance sa ON sa.course_schedule_id_ = cs.id_
|
|
|
+ LEFT JOIN student_attendance sa ON sa.course_schedule_id_ = cs.id_
|
|
|
+ <if test="searchType == 'ERR_ATTENDANCE'">
|
|
|
+ AND cssp.user_id_ = sa.user_id_
|
|
|
</if>
|
|
|
LEFT JOIN teacher_attendance ta on ta.course_schedule_id_ = cs.id_
|
|
|
LEFT JOIN course_schedule_teacher_salary csts ON csts.course_schedule_id_ = cs.id_
|
|
@@ -2590,6 +2590,10 @@
|
|
|
AND cs.status_ = 'OVER' AND ta.sign_in_time_ IS NULL AND ta.sign_out_time_ IS NULL AND ta.dispose_content_ IS NULL
|
|
|
AND (cs.new_course_id_ IS NULL OR cs.new_course_id_ = cs.id_)
|
|
|
</if>
|
|
|
+ <if test="searchType == 'COURSE_TIME_ERROR'">
|
|
|
+ AND cs.status_ = 'NOT_START' AND cs.start_class_time_ < '06:00:00'
|
|
|
+ AND (cs.new_course_id_ IS NULL OR cs.new_course_id_ = cs.id_)
|
|
|
+ </if>
|
|
|
</sql>
|
|
|
<select id="queryPracticeCourseScheduleIds" resultType="java.lang.Integer">
|
|
|
SELECT cs.id_ FROM course_schedule cs
|