|
@@ -3292,6 +3292,12 @@
|
|
|
ORDER BY start_class_time_ DESC LIMIT 1;
|
|
|
</select>
|
|
|
|
|
|
+ <select id="queryRemainCourseTypeDuration" resultMap="RemainCourseTypeDurationDto">
|
|
|
+ SELECT cs.type_ course_type_,SUM(TIMESTAMPDIFF(MINUTE,STR_TO_DATE(concat(cs.class_date_,' ',cs.start_class_time_),'%Y-%m-%d %H:%i:%s'),
|
|
|
+ STR_TO_DATE(concat(cs.class_date_,' ',cs.end_class_time_),'%Y-%m-%d %H:%i:%s'))) remain_minutes_
|
|
|
+ from course_schedule cs where FIND_IN_SET(cs.class_group_id_,#{classgroupId}) and cs.status_ = 'NOT_START' group by cs.type_
|
|
|
+ </select>
|
|
|
+
|
|
|
<resultMap id="CourseRepeatCheckDto" type="com.ym.mec.biz.dal.dto.CourseRepeatCheckDto">
|
|
|
<result column="course_id_" property="courseId"/>
|
|
|
<result column="class_date_" property="classDate"/>
|