|
@@ -1233,28 +1233,30 @@
|
|
|
|
|
|
<select id="queryTeacherCourseScheduleListByTimeRangeAndType" resultMap="CourseSchedule" parameterType="map">
|
|
|
SELECT
|
|
|
- id_,
|
|
|
- class_group_id_,
|
|
|
- status_,
|
|
|
- subsidy_,
|
|
|
- class_date_,
|
|
|
- CONCAT(class_date_,' ',start_class_time_) start_class_time_,
|
|
|
- CONCAT(class_date_,' ',end_class_time_) end_class_time_,
|
|
|
- teacher_id_,
|
|
|
- actual_teacher_id_,
|
|
|
- create_time_,
|
|
|
- update_time_,
|
|
|
- teach_mode_,
|
|
|
- type_,
|
|
|
- name_,
|
|
|
- student_num_,
|
|
|
- leave_student_num_,
|
|
|
- schoole_id_
|
|
|
- FROM course_schedule WHERE teacher_id_=#{teacherId} and CONCAT( class_date_, ' ', start_class_time_ ) between #{startTime} and #{endTime}
|
|
|
+ cs.id_,
|
|
|
+ cs.class_group_id_,
|
|
|
+ cs.status_,
|
|
|
+ cs.subsidy_,
|
|
|
+ cs.class_date_,
|
|
|
+ CONCAT(cs.class_date_,' ',cs.start_class_time_) start_class_time_,
|
|
|
+ CONCAT(cs.class_date_,' ',cs.end_class_time_) end_class_time_,
|
|
|
+ cs.teacher_id_,
|
|
|
+ cs.actual_teacher_id_,
|
|
|
+ cs.create_time_,
|
|
|
+ cs.update_time_,
|
|
|
+ cs.teach_mode_,
|
|
|
+ cs.type_,
|
|
|
+ cg.name_,
|
|
|
+ cs.student_num_,
|
|
|
+ cs.leave_student_num_,
|
|
|
+ cs.schoole_id_
|
|
|
+ FROM course_schedule cs
|
|
|
+ LEFT JOIN class_group cg ON cs.class_group_id_=cg.id_
|
|
|
+ WHERE cs.teacher_id_=#{teacherId} and CONCAT( cs.class_date_, ' ', cs.start_class_time_ ) between #{startTime} and #{endTime}
|
|
|
<if test="type != null">
|
|
|
- and type_ = #{type,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}
|
|
|
+ and cs.type_ = #{type,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}
|
|
|
</if>
|
|
|
- ORDER BY CONCAT(class_date_,' ',start_class_time_)
|
|
|
+ ORDER BY CONCAT(cs.class_date_,' ',cs.start_class_time_)
|
|
|
</select>
|
|
|
<!-- 查找班级未开始的课程 -->
|
|
|
<select id="findNoStartCoursesByClassGroupId" resultMap="CourseSchedule">
|