添加字段和表
parent
e15a957308
commit
ef14392a40
|
@ -10,5 +10,8 @@ public interface TaskInputMapper extends BaseMapper<TaskInput> {
|
||||||
|
|
||||||
TaskInput selectByNodeId(String oneNodeId);
|
TaskInput selectByNodeId(String oneNodeId);
|
||||||
|
|
||||||
|
|
||||||
TaskInput selectByTaskId(Long taskId);
|
TaskInput selectByTaskId(Long taskId);
|
||||||
|
|
||||||
|
Long selectByBasicId(Long taskId);
|
||||||
}
|
}
|
||||||
|
|
|
@ -91,12 +91,11 @@ public class TaskInputServiceImpl extends ServiceImpl<TaskInputMapper, TaskInput
|
||||||
String tableAsName = taskInput.getTableAsName();
|
String tableAsName = taskInput.getTableAsName();
|
||||||
joint=" "+tableName+" "+tableAsName;
|
joint=" "+tableName+" "+tableAsName;
|
||||||
}
|
}
|
||||||
TaskInput taskInput = taskInputMapper.selectByTaskId(taskId);
|
Long basicId = taskInputMapper.selectByBasicId(taskId);
|
||||||
Long databaseId = taskInput.getDatabaseId();
|
|
||||||
fieName = fieName.substring(1);
|
fieName = fieName.substring(1);
|
||||||
String sql="select "+fieName + " form "+joint;
|
String sql="select "+fieName + " form "+joint;
|
||||||
System.out.println("select "+fieName + " from "+joint);
|
System.out.println("select "+fieName + " from "+joint);
|
||||||
Result<List<List<DataValue>>> tableValue = datasourceFeign.findTableValue(databaseId, sql);
|
Result<List<List<DataValue>>> tableValue = datasourceFeign.findTableValue(basicId, sql);
|
||||||
System.out.println(tableValue);
|
System.out.println(tableValue);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,6 +10,11 @@
|
||||||
where node_id =${nodeId}
|
where node_id =${nodeId}
|
||||||
</select>
|
</select>
|
||||||
<select id="selectByTaskId" resultType="com.muyu.common.domian.TaskInput">
|
<select id="selectByTaskId" resultType="com.muyu.common.domian.TaskInput">
|
||||||
|
SELECT DISTINCT database_id
|
||||||
|
FROM etl_task_input e left join table_info t on e.database_id=t.id
|
||||||
|
where task_id =${taskId}
|
||||||
|
</select>
|
||||||
|
<select id="selectByBasicId" resultType="java.lang.Long">
|
||||||
SELECT DISTINCT basic_id
|
SELECT DISTINCT basic_id
|
||||||
FROM etl_task_input e left join table_info t on e.database_id=t.id
|
FROM etl_task_input e left join table_info t on e.database_id=t.id
|
||||||
where task_id =${taskId}
|
where task_id =${taskId}
|
||||||
|
|
Loading…
Reference in New Issue