From 76f3076481c49ef6b56da8b02b546e91177263e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E9=80=9A=E9=80=9A?= Date: Thu, 9 Mar 2023 11:05:52 +0800 Subject: [PATCH] [Bug] Fix ResourcesServiceImpl.java pageInfo (#13709) --- .../dolphinscheduler/api/service/impl/ResourcesServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ResourcesServiceImpl.java b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ResourcesServiceImpl.java index ea36e935b1..76c14333eb 100644 --- a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ResourcesServiceImpl.java +++ b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ResourcesServiceImpl.java @@ -769,7 +769,7 @@ public class ResourcesServiceImpl extends BaseServiceImpl implements ResourcesSe List slicedResourcesList = filteredResourceList.stream().skip((long) (pageNo - 1) * pageSize) .limit(pageSize).collect(Collectors.toList()); - pageInfo.setTotal(resourcesList.size()); + pageInfo.setTotal(filteredResourceList.size()); pageInfo.setTotalList(slicedResourcesList); result.setData(pageInfo); putMsg(result, Status.SUCCESS);