|
@@ -165,6 +165,8 @@ public class TableInfoServiceImpl implements ITableInfoService {
|
|
|
@Override
|
|
|
public void createOracleTable(Map<String, Object> map) {
|
|
|
String tableName = (String) map.get("tableName");
|
|
|
+ String username = (String) map.get("username");
|
|
|
+ String password = (String) map.get("password");
|
|
|
List<TableInfo> filedList = JSON.parseArray(JSON.toJSONString(map.get("field")), TableInfo.class);
|
|
|
List<String> descriptionList = new ArrayList<>();
|
|
|
List<String> list= filedList.stream().map(filed->{
|
|
@@ -188,6 +190,8 @@ public class TableInfoServiceImpl implements ITableInfoService {
|
|
|
}
|
|
|
return stringBuilder.toString();
|
|
|
}).collect(Collectors.toList());
|
|
|
+// tableInfoMapper.createOracleUser(username,password);
|
|
|
+// tableInfoMapper.assignAuthority(username);
|
|
|
tableInfoMapper.createOracleTable(tableName,list);
|
|
|
descriptionList.stream().forEach(f ->tableInfoMapper.addOracleTableDescription(f));
|
|
|
}
|