|
@@ -141,6 +141,7 @@
|
|
|
<result column="review_id_" property="reviewId"/>
|
|
|
<result column="student_review_" property="studentReview"/>
|
|
|
<result column="hand_homework_" property="handHomework"/>
|
|
|
+ <result column="assign_homework_" property="assignHomework"/>
|
|
|
<result column="course_review_" property="courseReview"/>
|
|
|
<result column="teacher_id" property="teacherId"/>
|
|
|
<result column="start_class_time_" jdbcType="DATE" property="startClassTime"/>
|
|
@@ -190,6 +191,12 @@
|
|
|
<if test="studentReview !=null">
|
|
|
AND csc.score_ =#{studentReview}
|
|
|
</if>
|
|
|
+ <if test="assignHomework != null and assignHomework == 1">
|
|
|
+ AND sch.id_>0
|
|
|
+ </if>
|
|
|
+ <if test="assignHomework != null and assignHomework ==0">
|
|
|
+ AND sch.id_ IS NULL
|
|
|
+ </if>
|
|
|
<if test='hasReview !=null and hasReview=="1"'>
|
|
|
AND csr.id_ > 0
|
|
|
</if>
|
|
@@ -239,7 +246,8 @@
|
|
|
edu_teacher_name_,pg.buy_months_,csr.id_ review_id_, csc.score_ student_review_,
|
|
|
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_
|
|
|
+ attendance_id_,sch.is_replied_ home_work_replied_,
|
|
|
+ CASE WHEN sch.id_ IS NULL THEN 0 ELSE 1 END assign_homework_
|
|
|
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_
|