diff --git a/renren-admin/src/main/java/io/renren/modules/resourceBrowse/service/impl/ResourceBrowseServiceImpl.java b/renren-admin/src/main/java/io/renren/modules/resourceBrowse/service/impl/ResourceBrowseServiceImpl.java index 66f72034..a099f567 100644 --- a/renren-admin/src/main/java/io/renren/modules/resourceBrowse/service/impl/ResourceBrowseServiceImpl.java +++ b/renren-admin/src/main/java/io/renren/modules/resourceBrowse/service/impl/ResourceBrowseServiceImpl.java @@ -81,11 +81,11 @@ public class ResourceBrowseServiceImpl extends CrudServiceImpl selectResourceBrowseByTypeAndUser(Map map) { List list = resourceBrowseDao.selectResourceBrowseByTypeAndUser(map); - list = list.stream() + List collect = list.stream() .skip(Long.valueOf(map.get("pageNum").toString())) .limit(Long.valueOf(map.get("pageSize").toString())) .collect(Collectors.toList()); - PageData pageData = new PageData(list, list.size()); + PageData pageData = new PageData(collect, list.size()); return pageData; } } \ No newline at end of file diff --git a/renren-admin/src/main/resources/mapper/resourceBrowse/ResourceBrowseDao.xml b/renren-admin/src/main/resources/mapper/resourceBrowse/ResourceBrowseDao.xml index 427df15a..0ff91795 100644 --- a/renren-admin/src/main/resources/mapper/resourceBrowse/ResourceBrowseDao.xml +++ b/renren-admin/src/main/resources/mapper/resourceBrowse/ResourceBrowseDao.xml @@ -54,20 +54,13 @@