From 6f7c83feb8c5d1f0a746904cd26edfe07bc9a58f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=86=B7=E5=86=B7?= <2270033969@qq.com> Date: Tue, 30 Jul 2024 19:24:50 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E4=BB=A3=E7=A0=81=E7=94=9F=E6=88=90):?= =?UTF-8?q?=20=E6=94=AF=E6=8C=81=E6=A0=B9=E6=8D=AE=E8=A1=A8=E5=90=8D?= =?UTF-8?q?=E5=92=8C=E6=B3=A8=E9=87=8A=E8=BF=9B=E8=A1=8C=E6=A8=A1=E7=B3=8A?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit 4e1f0afdba6fe12d7171b348687198272b834ac4) --- .../pigx/codegen/service/impl/GenTableServiceImpl.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pigx-visual/pigx-codegen/src/main/java/com/pig4cloud/pigx/codegen/service/impl/GenTableServiceImpl.java b/pigx-visual/pigx-codegen/src/main/java/com/pig4cloud/pigx/codegen/service/impl/GenTableServiceImpl.java index 23e8a1008..381b2aa5a 100644 --- a/pigx-visual/pigx-codegen/src/main/java/com/pig4cloud/pigx/codegen/service/impl/GenTableServiceImpl.java +++ b/pigx-visual/pigx-codegen/src/main/java/com/pig4cloud/pigx/codegen/service/impl/GenTableServiceImpl.java @@ -117,7 +117,10 @@ public class GenTableServiceImpl extends ServiceImpl i if (StrUtil.isBlank(table.getTableName())) { return true; } - return StrUtil.containsIgnoreCase(t.getName(false), table.getTableName()); + + // 通过表名和表注释进行模糊查询 + return StrUtil.containsIgnoreCase(t.getName(false), table.getTableName()) + || StrUtil.containsIgnoreCase(t.getComment(), table.getTableName()); }).toList(); // 根据 page 进行分页