mirror of
				https://github.com/dromara/RuoYi-Vue-Plus.git
				synced 2025-11-04 16:23:42 +08:00 
			
		
		
		
	update 优化 代码生成屏蔽无用表
This commit is contained in:
		@@ -64,6 +64,8 @@ public class GenTableServiceImpl implements IGenTableService {
 | 
				
			|||||||
    private final GenTableColumnMapper genTableColumnMapper;
 | 
					    private final GenTableColumnMapper genTableColumnMapper;
 | 
				
			||||||
    private final IdentifierGenerator identifierGenerator;
 | 
					    private final IdentifierGenerator identifierGenerator;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private static final String[] TABLE_IGNORE = new String[]{"sj_", "act_", "flw_", "gen_"};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
     * 查询业务字段列表
 | 
					     * 查询业务字段列表
 | 
				
			||||||
     *
 | 
					     *
 | 
				
			||||||
@@ -131,6 +133,7 @@ public class GenTableServiceImpl implements IGenTableService {
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
        // 过滤并转换表格数据
 | 
					        // 过滤并转换表格数据
 | 
				
			||||||
        List<GenTable> tables = tablesMap.values().stream()
 | 
					        List<GenTable> tables = tablesMap.values().stream()
 | 
				
			||||||
 | 
					            .filter(x -> !StringUtils.containsAnyIgnoreCase(x.getName(), TABLE_IGNORE))
 | 
				
			||||||
            .filter(x -> {
 | 
					            .filter(x -> {
 | 
				
			||||||
                boolean nameMatches = true;
 | 
					                boolean nameMatches = true;
 | 
				
			||||||
                boolean commentMatches = true;
 | 
					                boolean commentMatches = true;
 | 
				
			||||||
@@ -179,6 +182,7 @@ public class GenTableServiceImpl implements IGenTableService {
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        List<Table<?>> tableList = tablesMap.values().stream()
 | 
					        List<Table<?>> tableList = tablesMap.values().stream()
 | 
				
			||||||
 | 
					            .filter(x -> !StringUtils.containsAnyIgnoreCase(x.getName(), TABLE_IGNORE))
 | 
				
			||||||
            .filter(x -> tableNameSet.contains(x.getName())).toList();
 | 
					            .filter(x -> tableNameSet.contains(x.getName())).toList();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if (ArrayUtil.isEmpty(tableList)) {
 | 
					        if (ArrayUtil.isEmpty(tableList)) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user