From c767ee58463843547f9d344d5017652236a35319 Mon Sep 17 00:00:00 2001 From: dinggang <2498628697@qq.com> Date: Wed, 28 Dec 2022 09:54:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8F=E8=A7=88=E8=AE=B0=E5=BD=95=E5=88=86?= =?UTF-8?q?=E9=A1=B5=E9=94=99=E8=AF=AF=E5=8F=8A=E6=8C=89=E8=83=BD=E5=8A=9B?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E6=9F=A5=E8=AF=A2=E5=A4=B1=E6=95=88=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/ResourceBrowseServiceImpl.java | 4 ++-- .../resourceBrowse/ResourceBrowseDao.xml | 19 ++++++------------- 2 files changed, 8 insertions(+), 15 deletions(-) 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 @@