|
@@ -379,6 +379,15 @@ public class ResourceService {
|
379
|
379
|
List<TResourceDirector> directors = new ArrayList<>(groups.size());
|
380
|
380
|
List<Integer> schoolIds = new ArrayList<>();//已分享过的学校集合
|
381
|
381
|
try {
|
|
382
|
+ //2024-1-10分享到伙伴学校时同时分享到自己所在学校集团校 和 校本资源
|
|
383
|
+ Integer mySchoolid = vo.getSchoolid();
|
|
384
|
+ TGuideGroup myGroup = new TGuideGroup();
|
|
385
|
+ myGroup.setSchoolid(mySchoolid);
|
|
386
|
+ groups.add(myGroup);//分享到自己学校集团校
|
|
387
|
+
|
|
388
|
+ resource.setSchoolid(mySchoolid);
|
|
389
|
+ share(resource);//分享校本资源
|
|
390
|
+
|
382
|
391
|
for (TGuideGroup g : groups) {
|
383
|
392
|
Integer schoolid = g.getSchoolid();
|
384
|
393
|
if (N_Utils.numInList(schoolid, schoolids)) {//已分享过的学校需更新试题时间
|
|
@@ -467,6 +476,13 @@ public class ResourceService {
|
467
|
476
|
List<TResourceDirector> resourceDirectors = r.getDirectors();
|
468
|
477
|
List<TResourceDirector> directors = new ArrayList<>();
|
469
|
478
|
List<Integer> schoolIds = new ArrayList<>();//已分享过的学校集合
|
|
479
|
+
|
|
480
|
+ //2024-1-10分享到伙伴学校时同时分享到自己所在学校集团校 和 校本资源
|
|
481
|
+ Integer mySchoolid = r.getSchoolid();
|
|
482
|
+ TGuideGroup myGroup = new TGuideGroup();
|
|
483
|
+ myGroup.setSchoolid(mySchoolid);
|
|
484
|
+ groups.add(myGroup);//分享到自己学校集团校
|
|
485
|
+
|
470
|
486
|
for (TGuideGroup group : groups) {
|
471
|
487
|
Integer schoolid = group.getSchoolid();
|
472
|
488
|
if (N_Utils.numInList(schoolid, schoolids)) {//已分享过的学校需更新资源时间
|