chore: 优化部分代码

This commit is contained in:
2024-05-31 00:30:45 +08:00
parent 694cbb2850
commit a3391647b5
4 changed files with 18 additions and 18 deletions

View File

@@ -85,7 +85,7 @@ public class GeneratorServiceImpl implements GeneratorService {
List<Table> tableList = MetaUtils.getTables(dataSource);
String tableName = query.getTableName();
if (StrUtil.isNotBlank(tableName)) {
tableList.removeIf(table -> !StrUtil.containsAny(table.getTableName(), tableName));
tableList.removeIf(table -> !StrUtil.containsAnyIgnoreCase(table.getTableName(), tableName));
}
tableList.removeIf(table -> StrUtil.equalsAnyIgnoreCase(table.getTableName(), generatorProperties
.getExcludeTables()));