|
|
<?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.tianbo.imfClient.dao.T_ETL_MESSAGEMapper">
|
|
|
<resultMap id="BaseResultMap" type="com.tianbo.imfClient.model.T_ETL_MESSAGE">
|
|
|
<id column="FID" jdbcType="DECIMAL" property="fid" />
|
|
|
<result column="OPER" jdbcType="VARCHAR" property="oper" />
|
|
|
<result column="SNTM" jdbcType="TIMESTAMP" property="sntm" />
|
|
|
<result column="SNDR" jdbcType="VARCHAR" property="sndr" />
|
|
|
<result column="RCVR" jdbcType="VARCHAR" property="rcvr" />
|
|
|
<result column="SEQN" jdbcType="VARCHAR" property="seqn" />
|
|
|
<result column="DDTM" jdbcType="TIMESTAMP" property="ddtm" />
|
|
|
<result column="TYPE" jdbcType="VARCHAR" property="type" />
|
|
|
<result column="STYP" jdbcType="VARCHAR" property="styp" />
|
|
|
<result column="TRANSID" jdbcType="VARCHAR" property="transid" />
|
|
|
<result column="REMARK" jdbcType="NVARCHAR" property="remark" />
|
|
|
<result column="OUTTM" jdbcType="TIMESTAMP" property="outtm" />
|
|
|
<result column="OUTFLAG" jdbcType="DECIMAL" property="outflag" />
|
|
|
<result column="ETLTIM" jdbcType="TIMESTAMP" property="etltim" />
|
|
|
<result column="ETLFLAG" jdbcType="DECIMAL" property="etlflag" />
|
|
|
<result column="ERRTM" jdbcType="TIMESTAMP" property="errtm" />
|
|
|
<result column="ERRFLAG" jdbcType="DECIMAL" property="errflag" />
|
|
|
<result column="ERRLOG" jdbcType="NVARCHAR" property="errlog" />
|
|
|
<result column="APPID" jdbcType="VARCHAR" property="appid" />
|
|
|
</resultMap>
|
|
|
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.tianbo.imfClient.model.T_ETL_MESSAGE">
|
|
|
<result column="CONTENT" jdbcType="CLOB" property="content" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List">
|
|
|
FID, OPER, SNTM, SNDR, RCVR, SEQN, DDTM, TYPE, STYP, TRANSID, REMARK, OUTTM, OUTFLAG,
|
|
|
ETLTIM, ETLFLAG, ERRTM, ERRFLAG, ERRLOG, APPID
|
|
|
</sql>
|
|
|
<sql id="Blob_Column_List">
|
|
|
CONTENT
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" parameterType="java.math.BigDecimal" resultMap="ResultMapWithBLOBs">
|
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
|
,
|
|
|
<include refid="Blob_Column_List" />
|
|
|
from T_ETL_MESSAGE
|
|
|
where FID = #{fid,jdbcType=DECIMAL}
|
|
|
</select>
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.math.BigDecimal">
|
|
|
delete from T_ETL_MESSAGE
|
|
|
where FID = #{fid,jdbcType=DECIMAL}
|
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.tianbo.imfClient.model.T_ETL_MESSAGE">
|
|
|
insert into T_ETL_MESSAGE (FID, OPER, SNTM,
|
|
|
SNDR, RCVR, SEQN, DDTM,
|
|
|
TYPE, STYP, TRANSID,
|
|
|
REMARK, OUTTM, OUTFLAG,
|
|
|
ETLTIM, ETLFLAG, ERRTM,
|
|
|
ERRFLAG, ERRLOG, APPID,
|
|
|
CONTENT)
|
|
|
values (#{fid,jdbcType=DECIMAL}, #{oper,jdbcType=VARCHAR}, #{sntm,jdbcType=TIMESTAMP},
|
|
|
#{sndr,jdbcType=VARCHAR}, #{rcvr,jdbcType=VARCHAR}, #{seqn,jdbcType=VARCHAR}, #{ddtm,jdbcType=TIMESTAMP},
|
|
|
#{type,jdbcType=VARCHAR}, #{styp,jdbcType=VARCHAR}, #{transid,jdbcType=VARCHAR},
|
|
|
#{remark,jdbcType=NVARCHAR}, #{outtm,jdbcType=TIMESTAMP}, #{outflag,jdbcType=DECIMAL},
|
|
|
#{etltim,jdbcType=TIMESTAMP}, #{etlflag,jdbcType=DECIMAL}, #{errtm,jdbcType=TIMESTAMP},
|
|
|
#{errflag,jdbcType=DECIMAL}, #{errlog,jdbcType=NVARCHAR}, #{appid,jdbcType=VARCHAR},
|
|
|
#{content,jdbcType=CLOB})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.tianbo.imfClient.model.T_ETL_MESSAGE">
|
|
|
insert into T_ETL_MESSAGE
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
<if test="fid != null">
|
|
|
FID,
|
|
|
</if>
|
|
|
<if test="oper != null">
|
|
|
OPER,
|
|
|
</if>
|
|
|
<if test="sntm != null">
|
|
|
SNTM,
|
|
|
</if>
|
|
|
<if test="sndr != null">
|
|
|
SNDR,
|
|
|
</if>
|
|
|
<if test="rcvr != null">
|
|
|
RCVR,
|
|
|
</if>
|
|
|
<if test="seqn != null">
|
|
|
SEQN,
|
|
|
</if>
|
|
|
<if test="ddtm != null">
|
|
|
DDTM,
|
|
|
</if>
|
|
|
<if test="type != null">
|
|
|
TYPE,
|
|
|
</if>
|
|
|
<if test="styp != null">
|
|
|
STYP,
|
|
|
</if>
|
|
|
<if test="transid != null">
|
|
|
TRANSID,
|
|
|
</if>
|
|
|
<if test="remark != null">
|
|
|
REMARK,
|
|
|
</if>
|
|
|
<if test="outtm != null">
|
|
|
OUTTM,
|
|
|
</if>
|
|
|
<if test="outflag != null">
|
|
|
OUTFLAG,
|
|
|
</if>
|
|
|
<if test="etltim != null">
|
|
|
ETLTIM,
|
|
|
</if>
|
|
|
<if test="etlflag != null">
|
|
|
ETLFLAG,
|
|
|
</if>
|
|
|
<if test="errtm != null">
|
|
|
ERRTM,
|
|
|
</if>
|
|
|
<if test="errflag != null">
|
|
|
ERRFLAG,
|
|
|
</if>
|
|
|
<if test="errlog != null">
|
|
|
ERRLOG,
|
|
|
</if>
|
|
|
<if test="appid != null">
|
|
|
APPID,
|
|
|
</if>
|
|
|
<if test="content != null">
|
|
|
CONTENT,
|
|
|
</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="fid != null">
|
|
|
#{fid,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
<if test="oper != null">
|
|
|
#{oper,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="sntm != null">
|
|
|
#{sntm,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
<if test="sndr != null">
|
|
|
#{sndr,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="rcvr != null">
|
|
|
#{rcvr,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="seqn != null">
|
|
|
#{seqn,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="ddtm != null">
|
|
|
#{ddtm,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
<if test="type != null">
|
|
|
#{type,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="styp != null">
|
|
|
#{styp,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="transid != null">
|
|
|
#{transid,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="remark != null">
|
|
|
#{remark,jdbcType=OTHER},
|
|
|
</if>
|
|
|
<if test="outtm != null">
|
|
|
#{outtm,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
<if test="outflag != null">
|
|
|
#{outflag,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
<if test="etltim != null">
|
|
|
#{etltim,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
<if test="etlflag != null">
|
|
|
#{etlflag,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
<if test="errtm != null">
|
|
|
#{errtm,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
<if test="errflag != null">
|
|
|
#{errflag,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
<if test="errlog != null">
|
|
|
#{errlog,jdbcType=OTHER},
|
|
|
</if>
|
|
|
<if test="appid != null">
|
|
|
#{appid,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="content != null">
|
|
|
#{content,jdbcType=CLOB},
|
|
|
</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.tianbo.imfClient.model.T_ETL_MESSAGE">
|
|
|
update T_ETL_MESSAGE
|
|
|
<set>
|
|
|
<if test="oper != null">
|
|
|
OPER = #{oper,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="sntm != null">
|
|
|
SNTM = #{sntm,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
<if test="sndr != null">
|
|
|
SNDR = #{sndr,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="rcvr != null">
|
|
|
RCVR = #{rcvr,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="seqn != null">
|
|
|
SEQN = #{seqn,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="ddtm != null">
|
|
|
DDTM = #{ddtm,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
<if test="type != null">
|
|
|
TYPE = #{type,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="styp != null">
|
|
|
STYP = #{styp,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="transid != null">
|
|
|
TRANSID = #{transid,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="remark != null">
|
|
|
REMARK = #{remark,jdbcType=OTHER},
|
|
|
</if>
|
|
|
<if test="outtm != null">
|
|
|
OUTTM = #{outtm,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
<if test="outflag != null">
|
|
|
OUTFLAG = #{outflag,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
<if test="etltim != null">
|
|
|
ETLTIM = #{etltim,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
<if test="etlflag != null">
|
|
|
ETLFLAG = #{etlflag,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
<if test="errtm != null">
|
|
|
ERRTM = #{errtm,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
<if test="errflag != null">
|
|
|
ERRFLAG = #{errflag,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
<if test="errlog != null">
|
|
|
ERRLOG = #{errlog,jdbcType=OTHER},
|
|
|
</if>
|
|
|
<if test="appid != null">
|
|
|
APPID = #{appid,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="content != null">
|
|
|
CONTENT = #{content,jdbcType=CLOB},
|
|
|
</if>
|
|
|
</set>
|
|
|
where FID = #{fid,jdbcType=DECIMAL}
|
|
|
</update>
|
|
|
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.tianbo.imfClient.model.T_ETL_MESSAGE">
|
|
|
update T_ETL_MESSAGE
|
|
|
set OPER = #{oper,jdbcType=VARCHAR},
|
|
|
SNTM = #{sntm,jdbcType=TIMESTAMP},
|
|
|
SNDR = #{sndr,jdbcType=VARCHAR},
|
|
|
RCVR = #{rcvr,jdbcType=VARCHAR},
|
|
|
SEQN = #{seqn,jdbcType=VARCHAR},
|
|
|
DDTM = #{ddtm,jdbcType=TIMESTAMP},
|
|
|
TYPE = #{type,jdbcType=VARCHAR},
|
|
|
STYP = #{styp,jdbcType=VARCHAR},
|
|
|
TRANSID = #{transid,jdbcType=VARCHAR},
|
|
|
REMARK = #{remark,jdbcType=OTHER},
|
|
|
OUTTM = #{outtm,jdbcType=TIMESTAMP},
|
|
|
OUTFLAG = #{outflag,jdbcType=DECIMAL},
|
|
|
ETLTIM = #{etltim,jdbcType=TIMESTAMP},
|
|
|
ETLFLAG = #{etlflag,jdbcType=DECIMAL},
|
|
|
ERRTM = #{errtm,jdbcType=TIMESTAMP},
|
|
|
ERRFLAG = #{errflag,jdbcType=DECIMAL},
|
|
|
ERRLOG = #{errlog,jdbcType=OTHER},
|
|
|
APPID = #{appid,jdbcType=VARCHAR},
|
|
|
CONTENT = #{content,jdbcType=CLOB}
|
|
|
where FID = #{fid,jdbcType=DECIMAL}
|
|
|
</update>
|
|
|
<update id="updateByPrimaryKey" parameterType="com.tianbo.imfClient.model.T_ETL_MESSAGE">
|
|
|
update T_ETL_MESSAGE
|
|
|
set OPER = #{oper,jdbcType=VARCHAR},
|
|
|
SNTM = #{sntm,jdbcType=TIMESTAMP},
|
|
|
SNDR = #{sndr,jdbcType=VARCHAR},
|
|
|
RCVR = #{rcvr,jdbcType=VARCHAR},
|
|
|
SEQN = #{seqn,jdbcType=VARCHAR},
|
|
|
DDTM = #{ddtm,jdbcType=TIMESTAMP},
|
|
|
TYPE = #{type,jdbcType=VARCHAR},
|
|
|
STYP = #{styp,jdbcType=VARCHAR},
|
|
|
TRANSID = #{transid,jdbcType=VARCHAR},
|
|
|
REMARK = #{remark,jdbcType=OTHER},
|
|
|
OUTTM = #{outtm,jdbcType=TIMESTAMP},
|
|
|
OUTFLAG = #{outflag,jdbcType=DECIMAL},
|
|
|
ETLTIM = #{etltim,jdbcType=TIMESTAMP},
|
|
|
ETLFLAG = #{etlflag,jdbcType=DECIMAL},
|
|
|
ERRTM = #{errtm,jdbcType=TIMESTAMP},
|
|
|
ERRFLAG = #{errflag,jdbcType=DECIMAL},
|
|
|
ERRLOG = #{errlog,jdbcType=OTHER},
|
|
|
APPID = #{appid,jdbcType=VARCHAR}
|
|
|
where FID = #{fid,jdbcType=DECIMAL}
|
|
|
</update>
|
|
|
|
|
|
</mapper> |
|
|
\ No newline at end of file |
...
|
...
|
|