|
@@ -398,7 +398,7 @@
|
|
WHERE f.default_flag_=1
|
|
WHERE f.default_flag_=1
|
|
AND p.subject_id_=#{param.subjectId}) sp ON t.user_id_=sp.teacherId
|
|
AND p.subject_id_=#{param.subjectId}) sp ON t.user_id_=sp.teacherId
|
|
|
|
|
|
- WHERE t.user_id_ IN (SELECT teacher_id_ FROM teacher_free_time GROUP BY teacher_id_)
|
|
|
|
|
|
+ <where>
|
|
<if test="param.teacherIdList != null and param.teacherIdList.size>0">
|
|
<if test="param.teacherIdList != null and param.teacherIdList.size>0">
|
|
AND t.user_id_ IN
|
|
AND t.user_id_ IN
|
|
<foreach collection="param.teacherIdList" item="item" open="(" separator="," close=")">
|
|
<foreach collection="param.teacherIdList" item="item" open="(" separator="," close=")">
|
|
@@ -416,6 +416,7 @@
|
|
ORDER BY ${param.sort}
|
|
ORDER BY ${param.sort}
|
|
</when>
|
|
</when>
|
|
</choose>
|
|
</choose>
|
|
|
|
+ </where>
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="queryCourseTeacher" resultType="com.yonge.cooleshow.biz.dal.vo.CourseStudent"
|
|
<select id="queryCourseTeacher" resultType="com.yonge.cooleshow.biz.dal.vo.CourseStudent"
|
|
@@ -765,6 +766,9 @@
|
|
WHERE user_id_=(SELECT user_id_ FROM course_schedule_student_payment WHERE course_id_=#{courseId} AND course_type_='PRACTICE')
|
|
WHERE user_id_=(SELECT user_id_ FROM course_schedule_student_payment WHERE course_id_=#{courseId} AND course_type_='PRACTICE')
|
|
)
|
|
)
|
|
</select>
|
|
</select>
|
|
|
|
+ <select id="teacherIdList" resultType="java.lang.Long">
|
|
|
|
+ SELECT teacher_id_ FROM teacher_free_time GROUP BY teacher_id_
|
|
|
|
+ </select>
|
|
<update id="updateStartTime">
|
|
<update id="updateStartTime">
|
|
UPDATE course_schedule SET status_='ING' WHERE status_ != 'CANCEL' <![CDATA[ AND start_time_ <= NOW() ]]> <![CDATA[ AND NOW() <= end_time_ ]]>
|
|
UPDATE course_schedule SET status_='ING' WHERE status_ != 'CANCEL' <![CDATA[ AND start_time_ <= NOW() ]]> <![CDATA[ AND NOW() <= end_time_ ]]>
|
|
</update>
|
|
</update>
|