|
@@ -608,7 +608,10 @@
|
|
|
|
|
|
<select id="queryOnlineCourseByGroupType" resultMap="CourseScheduleTeacherSalary">
|
|
<select id="queryOnlineCourseByGroupType" resultMap="CourseScheduleTeacherSalary">
|
|
SELECT csts.* FROM `course_schedule_teacher_salary` csts LEFT JOIN `course_schedule` cs on csts.`course_schedule_id_` = cs.`id_`
|
|
SELECT csts.* FROM `course_schedule_teacher_salary` csts LEFT JOIN `course_schedule` cs on csts.`course_schedule_id_` = cs.`id_`
|
|
- WHERE cs.`group_type_` = #{groupType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler} and cs.`teach_mode_` = 'ONLINE'
|
|
|
|
|
|
+ left join vip_group vg on vg.id_ = csts.music_group_id_ and csts.group_type_ = 'VIP'
|
|
|
|
+ left join vip_group_category vgc on vgc.id_ = vg.vip_group_category_id_
|
|
|
|
+ left join teacher t on t.id_ = csts.user_id_
|
|
|
|
+ WHERE cs.`group_type_` = 'VIP' and cs.`teach_mode_` = 'ONLINE' and vgc.name_ = '1v1' and t.job_nature_ = 'FULL_TIME'
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="isTeacher" resultType="java.lang.Boolean">
|
|
<select id="isTeacher" resultType="java.lang.Boolean">
|