|
@@ -528,8 +528,7 @@
|
|
|
LEFT JOIN course_schedule_complaints csc ON csc.course_schedule_id_=cssp.course_schedule_id_ AND csc.user_id_=#{studentId}
|
|
|
LEFT JOIN student_attendance sa ON sa.course_schedule_id_ = cs.id_ AND sa.user_id_=#{studentId}
|
|
|
WHERE
|
|
|
- cs.is_lock_=0
|
|
|
- AND (cs.del_flag_ != 1 OR cs.del_flag_ IS NULL)
|
|
|
+ (cs.del_flag_ != 1 OR cs.del_flag_ IS NULL)
|
|
|
AND cs.class_date_ = DATE_FORMAT(#{classDate},'%Y%m%d')
|
|
|
AND cssp.user_id_ = #{studentId}
|
|
|
<if test="quitClassGroupIds != null and quitClassGroupIds.size()>0">
|
|
@@ -569,8 +568,7 @@
|
|
|
LEFT JOIN school s ON cs.schoole_id_ = s.id_
|
|
|
LEFT JOIN teacher_attendance ta ON cs.id_=ta.course_schedule_id_ AND ta.teacher_id_=#{teacherId}
|
|
|
WHERE
|
|
|
- cs.is_lock_=0
|
|
|
- AND (cs.del_flag_ != 1 OR cs.del_flag_ IS NULL)
|
|
|
+ (cs.del_flag_ != 1 OR cs.del_flag_ IS NULL)
|
|
|
AND cs.class_date_ = DATE_FORMAT(#{classDate},'%Y%m%d')
|
|
|
<if test="type!=null and type!=''">
|
|
|
AND cs.type_=#{type}
|