Browse Source

[Bug] Fix ResourcesServiceImpl.java pageInfo (#13709)

3.2.0-release
朱通通 2 years ago committed by GitHub
parent
commit
76f3076481
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ResourcesServiceImpl.java

2
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<StorageEntity> 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);

Loading…
Cancel
Save