From 2133e05370fa2dd31281247db59a062749dce57f Mon Sep 17 00:00:00 2001 From: zhangji <125540670@qq.com> Date: Thu, 13 Apr 2023 16:45:32 +0800 Subject: [PATCH] =?UTF-8?q?perf(=E5=88=86=E9=A1=B5=E6=9F=A5=E8=AF=A2):=20?= =?UTF-8?q?=E8=BF=94=E5=9B=9E=E9=87=8D=E6=96=B0=E5=88=86=E9=A1=B5=E7=9A=84?= =?UTF-8?q?=E9=A1=B5=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../hswebframework/web/crud/service/ReactiveCrudService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hsweb-commons/hsweb-commons-crud/src/main/java/org/hswebframework/web/crud/service/ReactiveCrudService.java b/hsweb-commons/hsweb-commons-crud/src/main/java/org/hswebframework/web/crud/service/ReactiveCrudService.java index 6179b186a..904bd701b 100644 --- a/hsweb-commons/hsweb-commons-crud/src/main/java/org/hswebframework/web/crud/service/ReactiveCrudService.java +++ b/hsweb-commons/hsweb-commons-crud/src/main/java/org/hswebframework/web/crud/service/ReactiveCrudService.java @@ -223,7 +223,7 @@ public interface ReactiveCrudService { return Mono.just(PagerResult.of(0, new ArrayList<>(), query)); } //查询前根据数据总数进行重新分页:要跳转的页码没有数据则跳转到最后一页 - return query(query.clone().rePaging(total)) + return query(query.rePaging(total)) .map(mapper) .collectList() .map(list -> PagerResult.of(total, list, query));