|
@@ -84,13 +84,14 @@
|
84
|
84
|
</select>
|
85
|
85
|
<!--我的课程列表-->
|
86
|
86
|
<select id="listMySection" resultType="java.util.Map">
|
87
|
|
- select c.courseid,c.gradeid,c.stunum,c.comm,c.createid,c.classid
|
|
87
|
+ select c.courseid,c.gradeid,c.stunum,c.comm,c.createid,c.classid,s.subjectname
|
88
|
88
|
,(select t.typename from l_course_type t where t.ctypeid=c.ctypeid)typename
|
89
|
89
|
,cs.sectionid,cs.sectionname,cs.sectiondate,cs.teacherid,cs.stunum cynum
|
90
|
90
|
,cs.planbegintime,cs.planendtime,cs.begintime,cs.endtime,cs.sectionstate
|
91
|
91
|
,TIMESTAMPDIFF(SECOND,CONCAT(cs.sectiondate,' ',cs.planbegintime),CONCAT(cs.sectiondate,' ',cs.planendtime)) totaltime
|
92
|
92
|
,(select count(*) from l_course_section_playback p where p.sectionid=cs.sectionid and p.pb is not null)playnum
|
93
|
93
|
from l_course_section cs left join l_course c on cs.courseid = c.courseid
|
|
94
|
+ left join t_subject s on c.subjectid=s.subjectid
|
94
|
95
|
where cs.teacherid=#{section.teacherid} and c.deleted=1 and c.courseschool=1 and cs.sectiondate=#{section.timestr}
|
95
|
96
|
<if test="section.cstate!=null and section.cstate!=-1">
|
96
|
97
|
and cs.sectionstate=#{section.cstate}
|