|
@@ -909,9 +909,6 @@
|
|
|
su.real_name_ AS studentRealName,
|
|
|
(CASE WHEN cs.start_time_ >= ta.sign_in_time_ THEN 1 ELSE 0 END) AS teacherInSign,
|
|
|
(CASE WHEN cs.end_time_ <= ta.sign_out_time_ THEN 1 ELSE 0 END) AS teacherOutSign,
|
|
|
- (CASE WHEN cs.start_time_ >= sa.sign_in_time_ THEN 1 ELSE 0 END) AS studentInSign,
|
|
|
- (CASE WHEN cs.end_time_ <= sa.sign_out_time_ THEN 1 ELSE 0 END) AS studentOutSign,
|
|
|
- (CASE WHEN cs.start_time_ >= sa.sign_in_time_ AND cs.end_time_ <= sa.sign_out_time_ THEN 1 ELSE 0 END) AS studentSign,
|
|
|
(CASE WHEN cs.start_time_ >= ta.sign_in_time_ AND cs.end_time_ <= ta.sign_out_time_ THEN 1 ELSE 0 END) AS teacherSign
|
|
|
FROM course_schedule cs
|
|
|
LEFT JOIN course_group cg ON cs.course_group_id_ = cg.id_
|
|
@@ -924,7 +921,13 @@
|
|
|
LEFT JOIN sys_user su ON cs.teacher_id_ = su.id_
|
|
|
WHERE cs.type_='PIANO_ROOM_CLASS'
|
|
|
AND cs.teacher_id_=#{param.teacherId}
|
|
|
- AND p.course_group_id_=#{param.courseGroupId}) m
|
|
|
+ AND p.course_group_id_=#{param.courseGroupId}
|
|
|
+ <if test="param.studentSign != null">
|
|
|
+ AND cs.id_ IN
|
|
|
+ <foreach collection="param.courseIds" item="item" open="(" close=")" separator=",">
|
|
|
+ #{item}
|
|
|
+ </foreach>
|
|
|
+ </if>) m
|
|
|
<where>
|
|
|
<if test="param.search != null and param.search != ''">
|
|
|
AND (
|
|
@@ -933,9 +936,6 @@
|
|
|
studentId LIKE concat('%',#{param.search},'%')
|
|
|
)
|
|
|
</if>
|
|
|
- <if test="param.studentSign != null">
|
|
|
- AND studentSign = #{param.studentSign}
|
|
|
- </if>
|
|
|
<if test="param.teacherSign != null">
|
|
|
AND teacherSign = #{param.teacherSign}
|
|
|
</if>
|