Browse Source

学生同步视频显示集团校分享的

tags/正式3.11.0
雍文秀 1 year ago
parent
commit
6880af9af1

+ 1
- 1
sapi/src/main/resources/mapper/itemtool/StudentTodoMapper.xml View File

@@ -53,7 +53,7 @@
53 53
             <if test="todo.todotype=='video'">
54 54
                 select 'video' todotype,count(distinct r.resourceid)num,#{todo.subjectid} subjectid
55 55
                 from t_resource r
56
-                where (r.belong in(1,2) or (r.belong=3 and r.schoolid=#{schoolid})) and r.resourcestate=1 and r.level=4
56
+                where (r.belong in(1,2) or (r.belong in(3,10) and r.schoolid=#{schoolid})) and r.resourcestate=1 and r.level=4
57 57
                 <if test="todo.subjectid!=null and todo.subjectid!='0'.toString() and todo.subjectid!=''">
58 58
                     and r.subjectid=#{todo.subjectid}
59 59
                 </if>

+ 2
- 2
sstudy/src/main/resources/mapper/resource/ResourceMapper.xml View File

@@ -181,7 +181,7 @@
181 181
         ,r.resourcegrade,r.source,r.year,r.region,r.schoolname,r.belong
182 182
         from t_resource r left join t_user u on u.userid=r.createid
183 183
         left join t_resource_director rd on r.resourceid=rd.resourceid
184
-        where r.resourcestate=1 and (r.belong in(1,2) or (r.belong=3 and r.schoolid=#{resource.schoolid}))
184
+        where r.resourcestate=1 and (r.belong in(1,2) or (r.belong in(3,10) and r.schoolid=#{resource.schoolid}))
185 185
         and r.level=4 and r.subjectid=#{resource.subjectid}
186 186
         <if test="resource.lsbid!=null and resource.lsbid!='0'.toString() and resource.lsbid!=''">
187 187
             and rd.lsbid=#{resource.lsbid}
@@ -235,7 +235,7 @@
235 235
         ,r.resourcegrade,r.source,r.year,r.region,r.schoolname,r.converted,r.belong
236 236
         from t_resource r left join t_user u on u.userid=r.createid
237 237
         left join t_resource_director rd on r.resourceid=rd.resourceid
238
-        where r.resourcestate=1 and (r.belong in(1,2) or (r.belong=3 and r.schoolid=#{resource.schoolid}))
238
+        where r.resourcestate=1 and (r.belong in(1,2) or (r.belong in(3,10) and r.schoolid=#{resource.schoolid}))
239 239
         and r.level=4
240 240
         <if test="resource.subjectid!=null and resource.subjectid!='0'.toString() and resource.subjectid!=''">
241 241
             and r.subjectid=#{resource.subjectid}

Loading…
Cancel
Save