49 lines
1.9 KiB
XML
49 lines
1.9 KiB
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.yun.task.mapper.TaskMapper">
|
|
|
|
|
|
<insert id="addImport">
|
|
INSERT INTO `shengshixian`.`t_node_one` ( `node_one_id`, `node_one_database`, `node_one_datatable`, `node_one_field`, `import1_id` )
|
|
VALUES
|
|
( 0,#{nodeOneDatabase},#{nodeOneDatatable},#{nodeOneField},#{import1Id} );;
|
|
|
|
</insert>
|
|
<insert id="addImport2">
|
|
INSERT INTO `shengshixian`.`t_node_two` (`node_two_id`, `node_two_database`, `node_two_datatable`, `node_two_field`, `import2_id`)
|
|
VALUES (0,#{nodeTwoDatabase},#{nodeTwoDatatable},#{nodeTwoField},#{import2Id});
|
|
|
|
</insert>
|
|
<insert id="createMiddle" keyProperty="configId" useGeneratedKeys="true">
|
|
INSERT INTO `shengshixian`.`t_config` (`config_id`, `improt1_id`, `improt2_id`, `improt3_id`)
|
|
VALUES (0,0,0,0);
|
|
|
|
</insert>
|
|
<insert id="addImport3">
|
|
INSERT INTO `shengshixian`.`t_node_three` (`node_three_id`, `node_one_datatable`, `node_one_field`, `node_three_way`, `node_two_datatable`, `node_two_field`, `import3_id`,`node_fields`)
|
|
VALUES (0,#{nodeOneDatatable},#{nodeOneField},#{nodeThreeWay},#{nodeTwoDatatable},#{nodeTwoField},1,#{nodeFields});
|
|
</insert>
|
|
<insert id="loading">
|
|
INSERT INTO `six`.`t_info` (`id`, `name`) VALUES (0, #{nodeFields});
|
|
</insert>
|
|
|
|
|
|
<update id="updateMiddle">
|
|
update t_config set improt1_id=#{improt1Id} where config_id=#{import1Id}
|
|
</update>
|
|
<update id="updateMiddle2">
|
|
update t_config set improt2_id=#{improt2Id} where config_id=#{import2Id}
|
|
</update>
|
|
<select id="taskList" resultType="com.bwie.common.domain.NodeThree">
|
|
select * from t_node_three
|
|
</select>
|
|
|
|
<select id="FileList" resultType="com.bwie.common.domain.NodeThree">
|
|
select *from t_node_three where node_three_id=#{nodeThreeId}
|
|
</select>
|
|
|
|
|
|
</mapper>
|