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
             <if test="todo.todotype=='video'">
53
             <if test="todo.todotype=='video'">
54
                 select 'video' todotype,count(distinct r.resourceid)num,#{todo.subjectid} subjectid
54
                 select 'video' todotype,count(distinct r.resourceid)num,#{todo.subjectid} subjectid
55
                 from t_resource r
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
                 <if test="todo.subjectid!=null and todo.subjectid!='0'.toString() and todo.subjectid!=''">
57
                 <if test="todo.subjectid!=null and todo.subjectid!='0'.toString() and todo.subjectid!=''">
58
                     and r.subjectid=#{todo.subjectid}
58
                     and r.subjectid=#{todo.subjectid}
59
                 </if>
59
                 </if>

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

181
         ,r.resourcegrade,r.source,r.year,r.region,r.schoolname,r.belong
181
         ,r.resourcegrade,r.source,r.year,r.region,r.schoolname,r.belong
182
         from t_resource r left join t_user u on u.userid=r.createid
182
         from t_resource r left join t_user u on u.userid=r.createid
183
         left join t_resource_director rd on r.resourceid=rd.resourceid
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
         and r.level=4 and r.subjectid=#{resource.subjectid}
185
         and r.level=4 and r.subjectid=#{resource.subjectid}
186
         <if test="resource.lsbid!=null and resource.lsbid!='0'.toString() and resource.lsbid!=''">
186
         <if test="resource.lsbid!=null and resource.lsbid!='0'.toString() and resource.lsbid!=''">
187
             and rd.lsbid=#{resource.lsbid}
187
             and rd.lsbid=#{resource.lsbid}
235
         ,r.resourcegrade,r.source,r.year,r.region,r.schoolname,r.converted,r.belong
235
         ,r.resourcegrade,r.source,r.year,r.region,r.schoolname,r.converted,r.belong
236
         from t_resource r left join t_user u on u.userid=r.createid
236
         from t_resource r left join t_user u on u.userid=r.createid
237
         left join t_resource_director rd on r.resourceid=rd.resourceid
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
         and r.level=4
239
         and r.level=4
240
         <if test="resource.subjectid!=null and resource.subjectid!='0'.toString() and resource.subjectid!=''">
240
         <if test="resource.subjectid!=null and resource.subjectid!='0'.toString() and resource.subjectid!=''">
241
             and r.subjectid=#{resource.subjectid}
241
             and r.subjectid=#{resource.subjectid}

Loading…
Cancel
Save