mirror of
https://github.com/hs-web/hsweb-framework.git
synced 2026-06-21 19:02:47 +08:00
perf(分页查询): 返回重新分页的页码
This commit is contained in:
@@ -223,7 +223,7 @@ public interface ReactiveCrudService<E, K> {
|
||||
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));
|
||||
|
||||
Reference in New Issue
Block a user