Browse Source

行政直播处理时课程获取正常状态下课程

tags/正式版本
王宁 2 years ago
parent
commit
108f372089

+ 2
- 2
slive/src/main/resources/mapper/liveplay/CourseMapper.xml View File

479
     <select id="getCourseByKjidAndClassid" resultType="com.xhkjedu.slive.vo.liveplay.CourseVo">
479
     <select id="getCourseByKjidAndClassid" resultType="com.xhkjedu.slive.vo.liveplay.CourseVo">
480
         select c.courseid,c.classid from l_course c
480
         select c.courseid,c.classid from l_course c
481
         left join l_course_class cc on c.courseid=cc.courseid
481
         left join l_course_class cc on c.courseid=cc.courseid
482
-        WHERE c.kjid=#{kjid} and cc.classid=#{classid}	 and c.begindate=#{seldate}
482
+        WHERE c.kjid=#{kjid} and cc.classid=#{classid} and c.begindate=#{seldate} and c.deleted=1
483
     </select>
483
     </select>
484
 
484
 
485
     <!--获取指定指定日期教师课节下教师的直播课-->
485
     <!--获取指定指定日期教师课节下教师的直播课-->
486
     <select id="getCourseByDateKjTeacher" resultType="com.xhkjedu.slive.vo.liveplay.CourseVo">
486
     <select id="getCourseByDateKjTeacher" resultType="com.xhkjedu.slive.vo.liveplay.CourseVo">
487
         select courseid,subjectid,classid,teacherid,kjid from l_course
487
         select courseid,subjectid,classid,teacherid,kjid from l_course
488
-        where kjid=#{kjTeaVo.kjid} and teacherid=#{kjTeaVo.teacherid} and begindate=#{kjTeaVo.seldate}
488
+        where kjid=#{kjTeaVo.kjid} and teacherid=#{kjTeaVo.teacherid} and begindate=#{kjTeaVo.seldate} and deleted=1
489
     </select>
489
     </select>
490
 
490
 
491
     <!--修改未开课课程课节时间-->
491
     <!--修改未开课课程课节时间-->

+ 3
- 3
slive/src/main/resources/mapper/xz/XzMapper.xml View File

16
     <!--行政直播课对应的课程已开课数量-->
16
     <!--行政直播课对应的课程已开课数量-->
17
     <select id="getXzSectionKsNum" resultType="java.lang.Integer">
17
     <select id="getXzSectionKsNum" resultType="java.lang.Integer">
18
         select count(*) from l_course c left join l_xz_kj k on c.kjid = k.kjid
18
         select count(*) from l_course c left join l_xz_kj k on c.kjid = k.kjid
19
-        where k.xzid = #{xzid} and c.coursestate>0
19
+        where k.xzid = #{xzid} and c.deleted=1 and c.coursestate>0
20
     </select>
20
     </select>
21
 
21
 
22
     <!--获取行政直播信息-->
22
     <!--获取行政直播信息-->
80
         left join t_user u on c.teacherid=u.userid
80
         left join t_user u on c.teacherid=u.userid
81
         left join t_subject s on c.subjectid=s.subjectid left join l_xz_kj k on c.kjid=k.kjid
81
         left join t_subject s on c.subjectid=s.subjectid left join l_xz_kj k on c.kjid=k.kjid
82
         where c.begindate=#{selectdate} and c.courseclass=1 and k.xzid=#{xzid} and cc.classid=#{classid}
82
         where c.begindate=#{selectdate} and c.courseclass=1 and k.xzid=#{xzid} and cc.classid=#{classid}
83
-        order by k.kjorder, lc.classtype, lc.classorder
83
+        and c.deleted=1 order by k.kjorder, lc.classtype, lc.classorder
84
     </select>
84
     </select>
85
 
85
 
86
     <!--获取指定课节班级对应的课程的日期-->
86
     <!--获取指定课节班级对应的课程的日期-->
87
     <select id="getAllDatesForKj" resultType="java.lang.String">
87
     <select id="getAllDatesForKj" resultType="java.lang.String">
88
         select c.enddate from l_course c left join l_course_class cc on c.courseid=cc.courseid
88
         select c.enddate from l_course c left join l_course_class cc on c.courseid=cc.courseid
89
-        WHERE c.kjid=#{kjid} and cc.classid=#{classid} and c.begindate<![CDATA[ >= ]]>#{seldate}
89
+        WHERE c.kjid=#{kjid} and cc.classid=#{classid} and c.deleted=1 and c.begindate<![CDATA[ >= ]]>#{seldate}
90
     </select>
90
     </select>
91
 
91
 
92
     <!--根据课节id获取行政直播详情-->
92
     <!--根据课节id获取行政直播详情-->

Loading…
Cancel
Save