|
@@ -49,7 +49,13 @@
|
|
|
SELECT t1.time_period,t1.time_number,t1.course_name,t2.name AS class_name,t3.name AS classroom_name,t1.id,t2.id as class_id FROM course_table t1
|
|
SELECT t1.time_period,t1.time_number,t1.course_name,t2.name AS class_name,t3.name AS classroom_name,t1.id,t2.id as class_id FROM course_table t1
|
|
|
LEFT JOIN base_class t2 ON t1.class_id = t2.id
|
|
LEFT JOIN base_class t2 ON t1.class_id = t2.id
|
|
|
LEFT JOIN base_classroom t3 ON t1.site_id = t3.id
|
|
LEFT JOIN base_classroom t3 ON t1.site_id = t3.id
|
|
|
- WHERE t1.status = 1 AND t1.teacher_id like concat('%', #{dto.teacherId},'%')
|
|
|
|
|
|
|
+ WHERE t1.status = 1
|
|
|
|
|
+ <if test="dto.adjustType != null and dto.adjustType == 'course_exchange'">
|
|
|
|
|
+ AND t1.teacher_id = #{dto.teacherId}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="dto.adjustType != null and dto.adjustType == 'course_substitute'">
|
|
|
|
|
+ AND t1.teacher_id like concat('%', #{dto.teacherId},'%')
|
|
|
|
|
+ </if>
|
|
|
AND t1.weeks = #{dto.week} AND t1.schedule_date = #{dto.adjustDate}
|
|
AND t1.weeks = #{dto.week} AND t1.schedule_date = #{dto.adjustDate}
|
|
|
<if test="dto.classId != null and dto.classId != ''">
|
|
<if test="dto.classId != null and dto.classId != ''">
|
|
|
and t1.class_id = #{dto.classId}
|
|
and t1.class_id = #{dto.classId}
|