|
@@ -531,6 +531,9 @@
|
|
|
LEFT JOIN sys_user su ON cs.actual_teacher_id_=su.id_
|
|
|
LEFT JOIN teacher_attendance ta ON cs.id_=ta.course_schedule_id_ AND ta.teacher_id_=cs.actual_teacher_id_
|
|
|
LEFT JOIN school s ON cs.schoole_id_=s.id_
|
|
|
+ <if test="transactionTeacherId!=null">
|
|
|
+ LEFT JOIN music_group mg ON cs.music_group_id_=mg.id_
|
|
|
+ </if>
|
|
|
WHERE
|
|
|
(cs.del_flag_ != 1 OR cs.del_flag_ IS NULL)
|
|
|
<if test="organIds!=null and organIds.size()>0">
|
|
@@ -552,6 +555,9 @@
|
|
|
<if test="musicGroupId!=null">
|
|
|
AND cs.music_group_id_=#{musicGroupId} AND cs.group_type_='MUSIC'
|
|
|
</if>
|
|
|
+ <if test="transactionTeacherId!=null">
|
|
|
+ AND mg.transaction_teacher_id_=#{transactionTeacherId}
|
|
|
+ </if>
|
|
|
AND cs.class_date_ = DATE_FORMAT(#{date},'%Y-%m-%d')
|
|
|
ORDER BY CONCAT(cs.class_date_,' ',cs.start_class_time_)
|
|
|
<include refid="global.limit"/>
|
|
@@ -565,6 +571,9 @@
|
|
|
<if test="classGroupIds != null and organIdList!=null">
|
|
|
LEFT JOIN class_group cg ON cs.class_group_id_ = cg.id_
|
|
|
</if>
|
|
|
+ <if test="transactionTeacherId!=null">
|
|
|
+ LEFT JOIN music_group mg ON cs.music_group_id_=mg.id_
|
|
|
+ </if>
|
|
|
WHERE
|
|
|
(cs.del_flag_ != 1 OR cs.del_flag_ IS NULL)
|
|
|
AND cs.id_ IS NOT NULL
|
|
@@ -586,6 +595,9 @@
|
|
|
<if test="musicGroupId!=null">
|
|
|
AND cs.music_group_id_=#{musicGroupId} AND cs.group_type_='MUSIC'
|
|
|
</if>
|
|
|
+ <if test="transactionTeacherId!=null">
|
|
|
+ AND mg.transaction_teacher_id_=#{transactionTeacherId}
|
|
|
+ </if>
|
|
|
AND cs.class_date_ = DATE_FORMAT(#{date},'%Y-%m-%d')
|
|
|
</select>
|
|
|
|
|
@@ -996,6 +1008,9 @@
|
|
|
cs.class_date_
|
|
|
FROM
|
|
|
course_schedule cs
|
|
|
+ <if test="transactionTeacherId!=null">
|
|
|
+ LEFT JOIN music_group mg ON cs.music_group_id_=mg.id_
|
|
|
+ </if>
|
|
|
WHERE
|
|
|
(cs.del_flag_ != 1 OR cs.del_flag_ IS NULL)
|
|
|
<if test="organIds!=null and organIds.size()>0">
|
|
@@ -1013,6 +1028,9 @@
|
|
|
<if test="type!=null and type!=''">
|
|
|
AND cs.group_type_=#{type}
|
|
|
</if>
|
|
|
+ <if test="transactionTeacherId!=null">
|
|
|
+ AND mg.transaction_teacher_id_=#{transactionTeacherId}
|
|
|
+ </if>
|
|
|
GROUP BY cs.class_date_
|
|
|
</select>
|
|
|
|