|
@@ -6,19 +6,24 @@
|
|
|
<result column="TASK_ID" property="taskId" jdbcType="VARCHAR" />
|
|
|
<result column="SRC_CONN" property="srcConn" jdbcType="VARCHAR" />
|
|
|
<result column="TARGET_CONN" property="targetConn" jdbcType="VARCHAR" />
|
|
|
- <result column="SQL" property="sql" jdbcType="VARCHAR" />
|
|
|
+ <result column="QUERY_SQL" property="querySql" jdbcType="VARCHAR" />
|
|
|
<result column="TARGET_TABLE" property="targetTable" jdbcType="VARCHAR" />
|
|
|
+ <result column="UPDATE_SQL" property="updateSql" jdbcType="VARCHAR" />
|
|
|
+ <result column="INSERT_SQL" property="insertSql" jdbcType="VARCHAR" />
|
|
|
+ <result column="REFRESH_SQL" property="refreshSql" jdbcType="VARCHAR" />
|
|
|
+ <result column="COLUMNS" property="columns" jdbcType="VARCHAR" />
|
|
|
</resultMap>
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
|
|
|
delete from DSP_TASK_SQL
|
|
|
where ID = #{id,jdbcType=VARCHAR}
|
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.xt.dsp.model.TaskSqlBean" >
|
|
|
- insert into DSP_TASK_SQL (ID, TASK_ID, SRC_CONN,
|
|
|
- TARGET_CONN, SQL, TARGET_TABLE
|
|
|
+ insert into DSP_TASK_SQL (ID, TASK_ID, SRC_CONN, TARGET_CONN,QUERY_SQL,
|
|
|
+ TARGET_TABLE,UPDATE_SQL,INSERT_SQL,REFRESH_SQL,COLUMNS
|
|
|
)
|
|
|
values (#{id,jdbcType=VARCHAR}, #{taskId,jdbcType=VARCHAR}, #{srcConn,jdbcType=VARCHAR},
|
|
|
- #{targetConn,jdbcType=VARCHAR}, #{sql,jdbcType=VARCHAR}, #{targetTable,jdbcType=VARCHAR}
|
|
|
+ #{targetConn,jdbcType=VARCHAR}, #{querySql,jdbcType=VARCHAR}, #{targetTable,jdbcType=VARCHAR},
|
|
|
+ #{updateSql,jdbcType=VARCHAR},#{insertSql,jdbcType=VARCHAR},#{refreshSql,jdbcType=VARCHAR},#{columns,jdbcType=VARCHAR}
|
|
|
)
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKey" parameterType="com.xt.dsp.model.TaskSqlBean" >
|
|
@@ -26,22 +31,29 @@
|
|
|
set TASK_ID = #{taskId,jdbcType=VARCHAR},
|
|
|
SRC_CONN = #{srcConn,jdbcType=VARCHAR},
|
|
|
TARGET_CONN = #{targetConn,jdbcType=VARCHAR},
|
|
|
- SQL = #{sql,jdbcType=VARCHAR},
|
|
|
- TARGET_TABLE = #{targetTable,jdbcType=VARCHAR}
|
|
|
+ QUERY_SQL = #{querySql,jdbcType=VARCHAR},
|
|
|
+ TARGET_TABLE = #{targetTable,jdbcType=VARCHAR},
|
|
|
+ UPDATE_SQL = #{updateSql,jdbcType=VARCHAR},
|
|
|
+ INSERT_SQL = #{insertSql,jdbcType=VARCHAR},
|
|
|
+ REFRESH_SQL = #{refreshSql,jdbcType=VARCHAR},
|
|
|
+ COLUMNS = #{columns,jdbcType=VARCHAR}
|
|
|
where ID = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
|
|
- select ID, TASK_ID, SRC_CONN, TARGET_CONN, SQL, TARGET_TABLE
|
|
|
+ select ID, TASK_ID, SRC_CONN, TARGET_CONN, TARGET_TABLE,QUERY_SQL,
|
|
|
+ TARGET_TABLE,UPDATE_SQL,INSERT_SQL,REFRESH_SQL,COLUMNS
|
|
|
from DSP_TASK_SQL
|
|
|
where ID = #{id,jdbcType=VARCHAR}
|
|
|
</select>
|
|
|
<select id="selectByTaskId" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
|
|
- select ID, TASK_ID, SRC_CONN, TARGET_CONN, SQL, TARGET_TABLE
|
|
|
+ select ID, TASK_ID, SRC_CONN, TARGET_CONN, TARGET_TABLE,QUERY_SQL,
|
|
|
+ TARGET_TABLE,UPDATE_SQL,INSERT_SQL,REFRESH_SQL,COLUMNS
|
|
|
from DSP_TASK_SQL
|
|
|
where TASK_ID = #{taskId,jdbcType=VARCHAR}
|
|
|
</select>
|
|
|
<select id="selectAll" resultMap="BaseResultMap" >
|
|
|
- select ID, TASK_ID, SRC_CONN, TARGET_CONN, SQL, TARGET_TABLE
|
|
|
+ select ID, TASK_ID, SRC_CONN, TARGET_CONN, TARGET_TABLE,QUERY_SQL,
|
|
|
+ TARGET_TABLE,UPDATE_SQL,INSERT_SQL,REFRESH_SQL,COLUMNS
|
|
|
from DSP_TASK_SQL
|
|
|
</select>
|
|
|
</mapper>
|