|
@@ -2338,6 +2338,7 @@
|
|
course_schedule cs
|
|
course_schedule cs
|
|
LEFT JOIN school s ON cs.schoole_id_=s.id_
|
|
LEFT JOIN school s ON cs.schoole_id_=s.id_
|
|
LEFT JOIN organization o ON cs.organ_id_=o.id_
|
|
LEFT JOIN organization o ON cs.organ_id_=o.id_
|
|
|
|
+ LEFT JOIN course_schedule_teacher_salary csts ON csts.course_schedule_id_ = cs.id_
|
|
left join teacher_attendance ta on ta.course_schedule_id_ = cs.id_ and ta.is_complaints_ = 1
|
|
left join teacher_attendance ta on ta.course_schedule_id_ = cs.id_ and ta.is_complaints_ = 1
|
|
LEFT JOIN student_attendance sa ON sa.course_schedule_id_ = cs.id_ AND sa.remark_ IS NULL
|
|
LEFT JOIN student_attendance sa ON sa.course_schedule_id_ = cs.id_ AND sa.remark_ IS NULL
|
|
<include refid="endFindCourseSchedulesCondition"/>
|
|
<include refid="endFindCourseSchedulesCondition"/>
|
|
@@ -2352,6 +2353,7 @@
|
|
FROM
|
|
FROM
|
|
course_schedule cs
|
|
course_schedule cs
|
|
LEFT JOIN student_attendance sa ON sa.course_schedule_id_ = cs.id_ AND sa.remark_ IS NULL
|
|
LEFT JOIN student_attendance sa ON sa.course_schedule_id_ = cs.id_ AND sa.remark_ IS NULL
|
|
|
|
+ LEFT JOIN course_schedule_teacher_salary csts ON csts.course_schedule_id_ = cs.id_
|
|
<include refid="endFindCourseSchedulesCondition"/>
|
|
<include refid="endFindCourseSchedulesCondition"/>
|
|
</select>
|
|
</select>
|
|
<select id="findCourseIdsByStudent" resultType="int">
|
|
<select id="findCourseIdsByStudent" resultType="int">
|
|
@@ -2446,7 +2448,10 @@
|
|
AND cs.teach_mode_ = #{teachMode,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}
|
|
AND cs.teach_mode_ = #{teachMode,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}
|
|
</if>
|
|
</if>
|
|
<if test="teacherIdList != null">
|
|
<if test="teacherIdList != null">
|
|
- AND cs.actual_teacher_id_=#{teacherIdList}
|
|
|
|
|
|
+ AND csts.user_id_=#{teacherIdList}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="teachType != null">
|
|
|
|
+ AND csts.teacher_role_ = #{teachType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}
|
|
</if>
|
|
</if>
|
|
<if test="organIdList!=null">
|
|
<if test="organIdList!=null">
|
|
AND FIND_IN_SET(cs.organ_id_,#{organIdList})
|
|
AND FIND_IN_SET(cs.organ_id_,#{organIdList})
|