Browse Source

开始录制完善

tags/正式3.10.2
雍文秀 1 year ago
parent
commit
6623cd0150

+ 1
- 1
slive/src/main/resources/mapper/recordserver/RecordserverMapper.xml View File

39
         ,(r.rsmaxnum-count(distinct case when cs.sectionid is not null then cs.sectionid else null end))synum
39
         ,(r.rsmaxnum-count(distinct case when cs.sectionid is not null then cs.sectionid else null end))synum
40
         from l_recordserver r left join l_course_section_playback csp on r.rsid=csp.rsid
40
         from l_recordserver r left join l_course_section_playback csp on r.rsid=csp.rsid
41
         left join l_course_section cs on csp.sectionid=cs.sectionid and cs.sectionstate=2
41
         left join l_course_section cs on csp.sectionid=cs.sectionid and cs.sectionstate=2
42
-        where r.rsstate=1 group by r.rsid having synum!=0)r order by synum desc,rand() limit 1
42
+        where r.rsstate=1 group by r.rsid having synum>0)r order by synum desc,rand() limit 1
43
     </select>
43
     </select>
44
     <!--根据录制服务id获取地址-->
44
     <!--根据录制服务id获取地址-->
45
     <select id="getPathById" resultType="java.lang.String">
45
     <select id="getPathById" resultType="java.lang.String">

Loading…
Cancel
Save