diff --git a/renren-admin/src/main/java/io/renren/modules/resource/service/impl/ResourceServiceImpl.java b/renren-admin/src/main/java/io/renren/modules/resource/service/impl/ResourceServiceImpl.java index 5694e739..cdd8cce1 100644 --- a/renren-admin/src/main/java/io/renren/modules/resource/service/impl/ResourceServiceImpl.java +++ b/renren-admin/src/main/java/io/renren/modules/resource/service/impl/ResourceServiceImpl.java @@ -250,7 +250,7 @@ public class ResourceServiceImpl extends CrudServiceImpl resourceRels = new ArrayList<>(); + for (String keyid : ids) { TbDataResourceRelEntity resourceRel = new TbDataResourceRelEntity(); resourceRel.setKeyId(Long.valueOf(keyid)); @@ -264,7 +264,7 @@ public class ResourceServiceImpl extends CrudServiceImpl resourceRels = new ArrayList<>(); + for (String keyid : ids) { TbDataResourceRelEntity resourceRel = new TbDataResourceRelEntity(); resourceRel.setKeyId(resourceID); @@ -311,7 +311,7 @@ public class ResourceServiceImpl extends CrudServiceImpl resourceRels = new ArrayList<>(); + for (String keyid : ids) { TbDataResourceRelEntity resourceRel = new TbDataResourceRelEntity(); resourceRel.setKeyId(Long.valueOf(keyid)); @@ -408,7 +408,7 @@ public class ResourceServiceImpl extends CrudServiceImpl