mirror of
http://git.pig4cloud.com/pig/pigx.git
synced 2026-11-08 04:39:00 +08:00
fix(代码生成): java8 版本编译问题
This commit is contained in:
1 parent
b6e685d83a
commit
59e2ce0b03
1 file changed
+3
-3
+3
-3
@@ -103,7 +103,7 @@ public class GenTableServiceImpl extends ServiceImpl<GenTableMapper, GenTable> i
|
||||
// 手动切换数据源
|
||||
DynamicDataSourceContextHolder.push(dsName);
|
||||
CacheProxy.clear();
|
||||
return ServiceProxy.metadata().columns(tableName).values().stream().map(Column::getName).toList();
|
||||
return ServiceProxy.metadata().columns(tableName).values().stream().map(Column::getName).collect(Collectors.toList());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -155,7 +155,7 @@ public class GenTableServiceImpl extends ServiceImpl<GenTableMapper, GenTable> i
|
||||
// 手动切换数据源
|
||||
DynamicDataSourceContextHolder.push(dsName);
|
||||
CacheProxy.clear();
|
||||
return ServiceProxy.metadata().tables().values().stream().map(Table::getName).toList();
|
||||
return ServiceProxy.metadata().tables().values().stream().map(Table::getName).collect(Collectors.toList());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -187,7 +187,7 @@ public class GenTableServiceImpl extends ServiceImpl<GenTableMapper, GenTable> i
|
||||
}
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
protected GenTable tableImport(String dsName, String tableName) {
|
||||
public GenTable tableImport(String dsName, String tableName) {
|
||||
// 手动切换数据源
|
||||
DynamicDataSourceContextHolder.push(dsName);
|
||||
|
||||
|
||||
Reference in new issue
Block a user