From 3e60197a31f140c863868440944df0427a9cf8e8 Mon Sep 17 00:00:00 2001 From: joshua Date: Thu, 16 May 2024 09:42:56 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=B0=81=E8=A3=85?= =?UTF-8?q?=E5=88=86=E9=A1=B5=20dataList=20=E7=B4=A2=E5=BC=95=E8=AE=A1?= =?UTF-8?q?=E7=AE=97=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../continew/starter/extension/crud/model/resp/PageResp.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/continew-starter-extension/continew-starter-extension-crud/src/main/java/top/continew/starter/extension/crud/model/resp/PageResp.java b/continew-starter-extension/continew-starter-extension-crud/src/main/java/top/continew/starter/extension/crud/model/resp/PageResp.java index 2f859beb..ade02623 100644 --- a/continew-starter-extension/continew-starter-extension-crud/src/main/java/top/continew/starter/extension/crud/model/resp/PageResp.java +++ b/continew-starter-extension/continew-starter-extension-crud/src/main/java/top/continew/starter/extension/crud/model/resp/PageResp.java @@ -104,7 +104,7 @@ public class PageResp implements Serializable { pageResp.setTotal(list.size()); // 对列表数据进行分页 int fromIndex = (page - 1) * size; - int toIndex = page * size + size; + int toIndex = page * size + fromIndex; if (fromIndex > list.size()) { pageResp.setList(new ArrayList<>(0)); } else if (toIndex >= list.size()) {