refactor: 代码生成支持排除指定表

This commit is contained in:
ray
2024-07-29 23:08:37 +08:00
parent 436638827f
commit 846a547254
5 changed files with 35 additions and 3 deletions

View File

@@ -60,6 +60,10 @@ public class GeneratorServiceImpl implements GeneratorService {
*/
public Page<TablePageVO> getTablePage(TablePageQuery queryParams) {
Page<TablePageVO> page = new Page<>(queryParams.getPageNum(), queryParams.getPageSize());
// 设置排除的表
List<String> excludeTables = generatorProperties.getExcludeTables();
queryParams.setExcludeTables(excludeTables);
return databaseMapper.getTablePage(page, queryParams);
}