Przeglądaj źródła

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

tags/正式版本
王宁 2 lat temu
rodzic
commit
108f372089

+ 2
- 2
slive/src/main/resources/mapper/liveplay/CourseMapper.xml Wyświetl plik

@@ -479,13 +479,13 @@
479 479
     <select id="getCourseByKjidAndClassid" resultType="com.xhkjedu.slive.vo.liveplay.CourseVo">
480 480
         select c.courseid,c.classid from l_course c
481 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 483
     </select>
484 484
 
485 485
     <!--获取指定指定日期教师课节下教师的直播课-->
486 486
     <select id="getCourseByDateKjTeacher" resultType="com.xhkjedu.slive.vo.liveplay.CourseVo">
487 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 489
     </select>
490 490
 
491 491
     <!--修改未开课课程课节时间-->

+ 3
- 3
slive/src/main/resources/mapper/xz/XzMapper.xml Wyświetl plik

@@ -16,7 +16,7 @@
16 16
     <!--行政直播课对应的课程已开课数量-->
17 17
     <select id="getXzSectionKsNum" resultType="java.lang.Integer">
18 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 20
     </select>
21 21
 
22 22
     <!--获取行政直播信息-->
@@ -80,13 +80,13 @@
80 80
         left join t_user u on c.teacherid=u.userid
81 81
         left join t_subject s on c.subjectid=s.subjectid left join l_xz_kj k on c.kjid=k.kjid
82 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 84
     </select>
85 85
 
86 86
     <!--获取指定课节班级对应的课程的日期-->
87 87
     <select id="getAllDatesForKj" resultType="java.lang.String">
88 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 90
     </select>
91 91
 
92 92
     <!--根据课节id获取行政直播详情-->

Ładowanie…
Anuluj
Zapisz