TransToArriveExportResonseDao.xml 7.6 KB
<?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.analysis.dao.TransToArriveExportResonseDao">
  <resultMap id="BaseResultMap" type="com.tianbo.analysis.model.TransToArriveExportResonse">
    <id column="AUTOID" jdbcType="VARCHAR" property="autoid" />
    <result column="VER" jdbcType="VARCHAR" property="ver" />
    <result column="SEQNO" jdbcType="VARCHAR" property="seqno" />
    <result column="CLIENTSEQNO" jdbcType="VARCHAR" property="clientseqno" />
    <result column="RESPONSECODE" jdbcType="VARCHAR" property="responsecode" />
    <result column="RESPONSEMESSAGE" jdbcType="VARCHAR" property="responsemessage" />
    <result column="NOTE" jdbcType="VARCHAR" property="note" />
    <result column="PROCRESULT" jdbcType="VARCHAR" property="procresult" />
    <result column="PROCDATE" jdbcType="TIMESTAMP" property="procdate" />
    <result column="RESPONSEDATE" jdbcType="TIMESTAMP" property="responsedate" />
    <result column="OPERATOR" jdbcType="VARCHAR" property="operator" />
    <result column="PCS" jdbcType="VARCHAR" property="pcs" />
    <result column="WGT" jdbcType="VARCHAR" property="wgt" />
    <result column="TYPE" jdbcType="VARCHAR" property="type" />
  </resultMap>
  <sql id="Base_Column_List">
    AUTOID, VER, SEQNO, CLIENTSEQNO, RESPONSECODE, RESPONSEMESSAGE, NOTE, PROCRESULT,
    PROCDATE, RESPONSEDATE, "OPERATOR", PCS, WGT, "TYPE"
  </sql>
  <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
    select
    <include refid="Base_Column_List" />
    from TRANS_TO_ARRIVE_EXPORT_RESONSE
    where AUTOID = #{autoid,jdbcType=VARCHAR}
  </select>
  <select id="selectByClientseqno" parameterType="java.lang.String" resultMap="BaseResultMap">
    select
    <include refid="Base_Column_List" />
    from TRANS_TO_ARRIVE_EXPORT_RESONSE
    where CLIENTSEQNO = #{autoid,jdbcType=VARCHAR}
    order by RESPONSEDATE desc
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
    delete from TRANS_TO_ARRIVE_EXPORT_RESONSE
    where AUTOID = #{autoid,jdbcType=VARCHAR}
  </delete>
  <insert id="insert" keyColumn="AUTOID" keyProperty="autoid" parameterType="com.tianbo.analysis.model.TransToArriveExportResonse" useGeneratedKeys="true">
    insert into TRANS_TO_ARRIVE_EXPORT_RESONSE (AUTOID,VER, SEQNO, CLIENTSEQNO,
      RESPONSECODE, RESPONSEMESSAGE, NOTE,
      PROCRESULT, PROCDATE, RESPONSEDATE,
      "OPERATOR", PCS, WGT,
      "TYPE")
    values (#{autoid,jdbcType=VARCHAR},#{ver,jdbcType=VARCHAR}, #{seqno,jdbcType=VARCHAR}, #{clientseqno,jdbcType=VARCHAR},
      #{responsecode,jdbcType=VARCHAR}, #{responsemessage,jdbcType=VARCHAR}, #{note,jdbcType=VARCHAR},
      #{procresult,jdbcType=VARCHAR}, #{procdate,jdbcType=TIMESTAMP}, #{responsedate,jdbcType=TIMESTAMP},
      #{operator,jdbcType=VARCHAR}, #{pcs,jdbcType=VARCHAR}, #{wgt,jdbcType=VARCHAR},
      #{type,jdbcType=VARCHAR})
  </insert>
  <insert id="insertSelective" keyColumn="AUTOID" keyProperty="autoid" parameterType="com.tianbo.analysis.model.TransToArriveExportResonse" useGeneratedKeys="true">
    insert into TRANS_TO_ARRIVE_EXPORT_RESONSE
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="autoid != null">
        AUTOID,
      </if>
      <if test="ver != null">
        VER,
      </if>
      <if test="seqno != null">
        SEQNO,
      </if>
      <if test="clientseqno != null">
        CLIENTSEQNO,
      </if>
      <if test="responsecode != null">
        RESPONSECODE,
      </if>
      <if test="responsemessage != null">
        RESPONSEMESSAGE,
      </if>
      <if test="note != null">
        NOTE,
      </if>
      <if test="procresult != null">
        PROCRESULT,
      </if>
      <if test="procdate != null">
        PROCDATE,
      </if>
      <if test="responsedate != null">
        RESPONSEDATE,
      </if>
      <if test="operator != null">
        "OPERATOR",
      </if>
      <if test="pcs != null">
        PCS,
      </if>
      <if test="wgt != null">
        WGT,
      </if>
      <if test="type != null">
        "TYPE",
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="autoid != null">
        #{autoid,jdbcType=VARCHAR},
      </if>
      <if test="ver != null">
        #{ver,jdbcType=VARCHAR},
      </if>
      <if test="seqno != null">
        #{seqno,jdbcType=VARCHAR},
      </if>
      <if test="clientseqno != null">
        #{clientseqno,jdbcType=VARCHAR},
      </if>
      <if test="responsecode != null">
        #{responsecode,jdbcType=VARCHAR},
      </if>
      <if test="responsemessage != null">
        #{responsemessage,jdbcType=VARCHAR},
      </if>
      <if test="note != null">
        #{note,jdbcType=VARCHAR},
      </if>
      <if test="procresult != null">
        #{procresult,jdbcType=VARCHAR},
      </if>
      <if test="procdate != null">
        #{procdate,jdbcType=TIMESTAMP},
      </if>
      <if test="responsedate != null">
        #{responsedate,jdbcType=TIMESTAMP},
      </if>
      <if test="operator != null">
        #{operator,jdbcType=VARCHAR},
      </if>
      <if test="pcs != null">
        #{pcs,jdbcType=VARCHAR},
      </if>
      <if test="wgt != null">
        #{wgt,jdbcType=VARCHAR},
      </if>
      <if test="type != null">
        #{type,jdbcType=VARCHAR},
      </if>
    </trim>
  </insert>
  <update id="updateByPrimaryKeySelective" parameterType="com.tianbo.analysis.model.TransToArriveExportResonse">
    update TRANS_TO_ARRIVE_EXPORT_RESONSE
    <set>
      <if test="ver != null">
        VER = #{ver,jdbcType=VARCHAR},
      </if>
      <if test="seqno != null">
        SEQNO = #{seqno,jdbcType=VARCHAR},
      </if>
      <if test="clientseqno != null">
        CLIENTSEQNO = #{clientseqno,jdbcType=VARCHAR},
      </if>
      <if test="responsecode != null">
        RESPONSECODE = #{responsecode,jdbcType=VARCHAR},
      </if>
      <if test="responsemessage != null">
        RESPONSEMESSAGE = #{responsemessage,jdbcType=VARCHAR},
      </if>
      <if test="note != null">
        NOTE = #{note,jdbcType=VARCHAR},
      </if>
      <if test="procresult != null">
        PROCRESULT = #{procresult,jdbcType=VARCHAR},
      </if>
      <if test="procdate != null">
        PROCDATE = #{procdate,jdbcType=TIMESTAMP},
      </if>
      <if test="responsedate != null">
        RESPONSEDATE = #{responsedate,jdbcType=TIMESTAMP},
      </if>
      <if test="operator != null">
        "OPERATOR" = #{operator,jdbcType=VARCHAR},
      </if>
      <if test="pcs != null">
        PCS = #{pcs,jdbcType=VARCHAR},
      </if>
      <if test="wgt != null">
        WGT = #{wgt,jdbcType=VARCHAR},
      </if>
      <if test="type != null">
        "TYPE" = #{type,jdbcType=VARCHAR},
      </if>
    </set>
    where AUTOID = #{autoid,jdbcType=VARCHAR}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.tianbo.analysis.model.TransToArriveExportResonse">
    update TRANS_TO_ARRIVE_EXPORT_RESONSE
    set VER = #{ver,jdbcType=VARCHAR},
      SEQNO = #{seqno,jdbcType=VARCHAR},
      CLIENTSEQNO = #{clientseqno,jdbcType=VARCHAR},
      RESPONSECODE = #{responsecode,jdbcType=VARCHAR},
      RESPONSEMESSAGE = #{responsemessage,jdbcType=VARCHAR},
      NOTE = #{note,jdbcType=VARCHAR},
      PROCRESULT = #{procresult,jdbcType=VARCHAR},
      PROCDATE = #{procdate,jdbcType=TIMESTAMP},
      RESPONSEDATE = #{responsedate,jdbcType=TIMESTAMP},
      "OPERATOR" = #{operator,jdbcType=VARCHAR},
      PCS = #{pcs,jdbcType=VARCHAR},
      WGT = #{wgt,jdbcType=VARCHAR},
      "TYPE" = #{type,jdbcType=VARCHAR}
    where AUTOID = #{autoid,jdbcType=VARCHAR}
  </update>
</mapper>