refactor(代码生成): 支持根据表名和注释进行模糊查询

(cherry picked from commit 4e1f0afdba6fe12d7171b348687198272b834ac4)
This commit is contained in:
冷冷 committed 2024-08-16 15:27:40 +08:00
1 parent 0e6be2eccc
commit 6f7c83feb8
1 file changed
+4 -1
@@ -117,7 +117,10 @@ public class GenTableServiceImpl extends ServiceImpl<GenTableMapper, GenTable> 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 进行分页