|
@@ -138,6 +138,7 @@
|
|
|
<result column="teacher_name_" jdbcType="VARCHAR" property="teacherName"/>
|
|
|
<result column="edu_teacher_name_" jdbcType="VARCHAR" property="eduTeacherName"/>
|
|
|
<result column="buy_months_" property="BuyMonths"/>
|
|
|
+ <result column="practice_group_type_" property="practiceGroupType"/>
|
|
|
<result column="review_id_" property="reviewId"/>
|
|
|
<result column="student_review_" property="studentReview"/>
|
|
|
<result column="hand_homework_" property="handHomework"/>
|
|
@@ -188,6 +189,9 @@
|
|
|
<if test='isFree !=null and isFree=="1"'>
|
|
|
AND pg.type_='FREE'
|
|
|
</if>
|
|
|
+ <if test="practiceGroupType != null">
|
|
|
+ AND pg.type_=#{practiceGroupType, typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}
|
|
|
+ </if>
|
|
|
<if test="studentReview !=null">
|
|
|
AND csc.score_ =#{studentReview}
|
|
|
</if>
|
|
@@ -247,7 +251,8 @@
|
|
|
csr.hand_homework_,csr.course_review_,pg.student_id_,csr.teaching_material_,csr.pronunciation_,csr.tempo_,
|
|
|
csr.music_theory_,csr.song_,csr.memo_,csr.create_time_,csr.has_liaison_,csr.update_time_,sa.id_
|
|
|
attendance_id_,sch.is_replied_ home_work_replied_,
|
|
|
- CASE WHEN sch.id_ IS NULL THEN 0 ELSE 1 END assign_homework_
|
|
|
+ CASE WHEN sch.id_ IS NULL THEN 0 ELSE 1 END assign_homework_,
|
|
|
+ pg.type_ practice_group_type_
|
|
|
FROM course_schedule cs
|
|
|
LEFT JOIN practice_group pg ON cs.music_group_id_ = pg.id_ AND cs.group_type_='PRACTICE'
|
|
|
LEFT JOIN sys_user su ON cs.actual_teacher_id_ = su.id_
|