From 403fc00b738c3fa57630b5971db228c300fb3ea6 Mon Sep 17 00:00:00 2001 From: bigtotoro Date: Sun, 19 Jan 2025 16:28:10 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8Dhutool-all-5.4.5=E9=87=8C?= =?UTF-8?q?=E9=9D=A2PageUtil=E7=9A=84=E9=BB=98=E8=AE=A4firstPageNo?= =?UTF-8?q?=E4=B8=BA0=E5=AF=BC=E8=87=B4=E5=89=8D=E7=AB=AF=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E7=AC=AC=E4=B8=80=E9=A1=B5=E6=95=B0=E6=8D=AE=E6=97=B6?= =?UTF-8?q?=E8=AE=BE=E7=BD=AEcurrentPage=3D1=E8=8E=B7=E5=8F=96=E4=B8=8D?= =?UTF-8?q?=E5=88=B0=E7=AC=AC=E4=B8=80=E9=A1=B5=E6=95=B0=E6=8D=AE;?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9C=A8db.query=E6=97=B6=E6=9C=AA=E6=8C=87?= =?UTF-8?q?=E5=AE=9A=E5=A4=A7=E5=B0=8F=E5=86=99=E6=95=8F=E6=84=9F=E5=AF=BC?= =?UTF-8?q?=E8=87=B4Entity=E7=9A=84=E7=88=B6=E7=B1=BBcustomKey=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E4=BC=9A=E5=B0=86=E5=AD=97=E6=AE=B5=E5=90=8D=E6=94=B9?= =?UTF-8?q?=E5=8F=98=E6=88=90=E5=B0=8F=E5=86=99=E5=AF=BC=E8=87=B4=E5=89=8D?= =?UTF-8?q?=E7=AB=AF=E6=97=A0=E6=B3=95=E8=8E=B7=E5=8F=96=E6=98=A0=E5=B0=84?= =?UTF-8?q?=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/xkcoding/codegen/service/impl/CodeGenServiceImpl.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/demo-codegen/src/main/java/com/xkcoding/codegen/service/impl/CodeGenServiceImpl.java b/demo-codegen/src/main/java/com/xkcoding/codegen/service/impl/CodeGenServiceImpl.java index b39bd1908..b8e0a13bf 100755 --- a/demo-codegen/src/main/java/com/xkcoding/codegen/service/impl/CodeGenServiceImpl.java +++ b/demo-codegen/src/main/java/com/xkcoding/codegen/service/impl/CodeGenServiceImpl.java @@ -1,6 +1,7 @@ package com.xkcoding.codegen.service.impl; import cn.hutool.core.io.IoUtil; +import cn.hutool.core.util.PageUtil; import cn.hutool.core.util.StrUtil; import cn.hutool.db.Db; import cn.hutool.db.Entity; @@ -51,8 +52,9 @@ public class CodeGenServiceImpl implements CodeGenService { public PageResult listTables(TableRequest request) { HikariDataSource dataSource = DbUtil.buildFromTableRequest(request); Db db = new Db(dataSource); - + db.setCaseInsensitive(false); Page page = new Page(request.getCurrentPage(), request.getPageSize()); + PageUtil.setFirstPageNo(1); int start = page.getStartPosition(); int pageSize = page.getPageSize();