|
@@ -303,10 +303,10 @@
|
|
|
LEFT JOIN course_schedule cs ON cs.id_ = csts.course_schedule_id_
|
|
|
LEFT JOIN teacher_attendance ta ON ta.course_schedule_id_ = cs.id_
|
|
|
WHERE ta.id_ IS NOT NULL
|
|
|
- <if test="days!=null">
|
|
|
- AND cs.class_date_ <= DATE_FORMAT(DATE_ADD( NOW( ), INTERVAL - #{days} DAY ),'%Y-%m-%d')
|
|
|
+ <if test="startDate != null">
|
|
|
+ AND cs.class_date_ BETWEEN #{startDate} AND #{endDate}
|
|
|
</if>
|
|
|
- AND cs.type_ = #{groupType}
|
|
|
+ AND cs.type_ = 'PRACTICE'
|
|
|
AND csts.settlement_time_ IS NULL
|
|
|
AND (cs.del_flag_ IS NULL OR cs.del_flag_=0)
|
|
|
</select>
|