mirror of
				https://github.com/dromara/RuoYi-Vue-Plus.git
				synced 2025-11-04 16:23:42 +08:00 
			
		
		
		
	update 优化 代码生成器 pg数据库 主键获取不精确问题
This commit is contained in:
		@@ -303,7 +303,11 @@ public class GenTableServiceImpl implements IGenTableService {
 | 
			
		||||
    @DS("#dataName")
 | 
			
		||||
    @Override
 | 
			
		||||
    public List<GenTableColumn> selectDbTableColumnsByName(String tableName, String dataName) {
 | 
			
		||||
        LinkedHashMap<String, Column> columns = ServiceProxy.metadata().columns(tableName);
 | 
			
		||||
        Table<?> table = ServiceProxy.metadata().table(tableName);
 | 
			
		||||
        if (ObjectUtil.isNull(table)) {
 | 
			
		||||
            return new ArrayList<>();
 | 
			
		||||
        }
 | 
			
		||||
        LinkedHashMap<String, Column> columns = table.getColumns();
 | 
			
		||||
        List<GenTableColumn> tableColumns = new ArrayList<>();
 | 
			
		||||
        columns.forEach((columnName, column) -> {
 | 
			
		||||
            GenTableColumn tableColumn = new GenTableColumn();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user