|
@@ -20,6 +20,7 @@ import java.awt.print.Book;
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
+import java.util.stream.Collectors;
|
|
|
|
|
|
@Service
|
|
|
public class DataSourceServiceImpl implements IDataSourceService {
|
|
@@ -115,7 +116,8 @@ public class DataSourceServiceImpl implements IDataSourceService {
|
|
|
DataSource dataSource = JSON.parseObject(JSON.toJSONString(map), DataSource.class);
|
|
|
List<TableInfo> tableInfoList = new ArrayList<>();
|
|
|
if (dataSource.getDatabaseType().equals(DataSourceType.MYSQL.getDataSourceName())) {
|
|
|
- tableInfoList = tableInfoMapper.mysqlTableFieldInfo(dataSource.getDatabaseName(), map.get("tableName").toString());
|
|
|
+ tableInfoList = tableInfoMapper.mysqlTableFieldInfo(dataSource.getDatabaseName(), map.get("tableName").toString()).stream().filter(d ->
|
|
|
+ !d.getFieldName().equals("task_key") && !d.getFieldName().equals("task_node_key")).collect(Collectors.toList());
|
|
|
} else if (dataSource.getDatabaseType().equals(DataSourceType.SQLSERVER.getDataSourceName())) {
|
|
|
tableInfoList = tableInfoMapper.sqlserverTableFieldInfo(map.get("tableName").toString());
|
|
|
} else if (dataSource.getDatabaseType().equals(DataSourceType.DM.getDataSourceName())) {
|