|
@@ -49,7 +49,7 @@
|
|
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 = #{dto.teacherId}
|
|
|
|
|
|
+ WHERE t1.status = 1 AND t1.teacher_id like concat('%', #{dto.teacherId},'%')
|
|
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}
|
|
@@ -57,7 +57,7 @@
|
|
</select>
|
|
</select>
|
|
<select id="getClassListByTeacherId" parameterType="com.xjrsoft.module.schedule.dto.ClassOptionDto" resultType="com.xjrsoft.module.schedule.vo.ClassOptionVo">
|
|
<select id="getClassListByTeacherId" parameterType="com.xjrsoft.module.schedule.dto.ClassOptionDto" resultType="com.xjrsoft.module.schedule.vo.ClassOptionVo">
|
|
SELECT id,name FROM base_class WHERE delete_mark = 0 AND id IN (
|
|
SELECT id,name FROM base_class WHERE delete_mark = 0 AND id IN (
|
|
- SELECT DISTINCT class_id FROM course_table WHERE teacher_id = #{dto.userId}
|
|
|
|
|
|
+ SELECT DISTINCT class_id FROM course_table WHERE teacher_id like concat('%', #{dto.userId},'%')
|
|
)
|
|
)
|
|
</select>
|
|
</select>
|
|
</mapper>
|
|
</mapper>
|