cloud-etl-task/cloud-task-server/src/main/resources/mapper/TaskInputMapper.xml

23 lines
914 B
XML

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.muyu.task.server.mapper.TaskInputMapper">
<select id="selectByNodeId" resultType="com.muyu.common.domian.TaskInput">
SELECT DISTINCT table_name,table_as_name
FROM etl_task_input
where node_id =${nodeId}
</select>
<select id="selectByTaskId" resultType="com.muyu.common.domian.TaskInput">
SELECT DISTINCT e.table_name,e.table_as_name
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
FROM etl_task_input e left join table_info t on e.database_id=t.id
where task_id =${taskId}
</select>
</mapper>