port_manifest_head_statMapper.xml 11.9 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.sy.mapper.port_manifest_head_statMapper">
  <resultMap id="BaseResultMap" type="com.sy.model.port_manifest_head_stat">
    <id column="BASEID" jdbcType="VARCHAR" property="baseid" />
    <result column="AREACODE" jdbcType="VARCHAR" property="areacode" />
    <result column="CUSTOMSCODE" jdbcType="VARCHAR" property="customscode" />
    <result column="TRADECODE" jdbcType="VARCHAR" property="tradecode" />
    <result column="TRADENAME" jdbcType="VARCHAR" property="tradename" />
    <result column="INPUTCODE" jdbcType="VARCHAR" property="inputcode" />
    <result column="INPUTNAME" jdbcType="VARCHAR" property="inputname" />
    <result column="DECLARECODE" jdbcType="VARCHAR" property="declarecode" />
    <result column="DECLARENAME" jdbcType="VARCHAR" property="declarename" />
    <result column="STEPID" jdbcType="VARCHAR" property="stepid" />
    <result column="PRESTEPID" jdbcType="VARCHAR" property="prestepid" />
    <result column="OPERTYPE" jdbcType="VARCHAR" property="opertype" />
    <result column="OPERRESULT" jdbcType="VARCHAR" property="operresult" />
    <result column="CREATEPERSON" jdbcType="VARCHAR" property="createperson" />
    <result column="CREATEDATE" jdbcType="DATE" property="createdate" />
    <result column="DECLAREPERSON" jdbcType="VARCHAR" property="declareperson" />
    <result column="DECLAREDATE" jdbcType="DATE" property="declaredate" />
    <result column="APPROVEPERSON" jdbcType="VARCHAR" property="approveperson" />
    <result column="APPROVEDATE" jdbcType="DATE" property="approvedate" />
    <result column="OUTERCOMMENT" jdbcType="VARCHAR" property="outercomment" />
    <result column="INNERCOMMENT" jdbcType="VARCHAR" property="innercomment" />
    <result column="EXTENDFIELD1" jdbcType="VARCHAR" property="extendfield1" />
    <result column="EXTENDFIELD2" jdbcType="VARCHAR" property="extendfield2" />
    <result column="EXTENDFIELD3" jdbcType="VARCHAR" property="extendfield3" />
  </resultMap>
  <sql id="Base_Column_List">
    BASEID, AREACODE, CUSTOMSCODE, TRADECODE, TRADENAME, INPUTCODE, INPUTNAME, DECLARECODE, 
    DECLARENAME, STEPID, PRESTEPID, OPERTYPE, OPERRESULT, CREATEPERSON, CREATEDATE, DECLAREPERSON, 
    DECLAREDATE, APPROVEPERSON, APPROVEDATE, OUTERCOMMENT, INNERCOMMENT, EXTENDFIELD1, 
    EXTENDFIELD2, EXTENDFIELD3
  </sql>
  <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
    select 
    <include refid="Base_Column_List" />
    from port_manifest_head_stat
    where BASEID = #{baseid,jdbcType=VARCHAR}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
    delete from port_manifest_head_stat
    where BASEID = #{baseid,jdbcType=VARCHAR}
  </delete>
  <insert id="insert" parameterType="com.sy.model.port_manifest_head_stat">
    insert into port_manifest_head_stat (BASEID, AREACODE, CUSTOMSCODE, 
      TRADECODE, TRADENAME, INPUTCODE, 
      INPUTNAME, DECLARECODE, DECLARENAME, 
      STEPID, PRESTEPID, OPERTYPE, 
      OPERRESULT, CREATEPERSON, CREATEDATE, 
      DECLAREPERSON, DECLAREDATE, APPROVEPERSON, 
      APPROVEDATE, OUTERCOMMENT, INNERCOMMENT, 
      EXTENDFIELD1, EXTENDFIELD2, EXTENDFIELD3
      )
    values (#{baseid,jdbcType=VARCHAR}, #{areacode,jdbcType=VARCHAR}, #{customscode,jdbcType=VARCHAR}, 
      #{tradecode,jdbcType=VARCHAR}, #{tradename,jdbcType=VARCHAR}, #{inputcode,jdbcType=VARCHAR}, 
      #{inputname,jdbcType=VARCHAR}, #{declarecode,jdbcType=VARCHAR}, #{declarename,jdbcType=VARCHAR}, 
      #{stepid,jdbcType=VARCHAR}, #{prestepid,jdbcType=VARCHAR}, #{opertype,jdbcType=VARCHAR}, 
      #{operresult,jdbcType=VARCHAR}, #{createperson,jdbcType=VARCHAR}, #{createdate,jdbcType=DATE}, 
      #{declareperson,jdbcType=VARCHAR}, #{declaredate,jdbcType=DATE}, #{approveperson,jdbcType=VARCHAR}, 
      #{approvedate,jdbcType=DATE}, #{outercomment,jdbcType=VARCHAR}, #{innercomment,jdbcType=VARCHAR}, 
      #{extendfield1,jdbcType=VARCHAR}, #{extendfield2,jdbcType=VARCHAR}, #{extendfield3,jdbcType=VARCHAR}
      )
  </insert>
  <insert id="insertSelective" parameterType="com.sy.model.port_manifest_head_stat">
    insert into port_manifest_head_stat
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="baseid != null">
        BASEID,
      </if>
      <if test="areacode != null">
        AREACODE,
      </if>
      <if test="customscode != null">
        CUSTOMSCODE,
      </if>
      <if test="tradecode != null">
        TRADECODE,
      </if>
      <if test="tradename != null">
        TRADENAME,
      </if>
      <if test="inputcode != null">
        INPUTCODE,
      </if>
      <if test="inputname != null">
        INPUTNAME,
      </if>
      <if test="declarecode != null">
        DECLARECODE,
      </if>
      <if test="declarename != null">
        DECLARENAME,
      </if>
      <if test="stepid != null">
        STEPID,
      </if>
      <if test="prestepid != null">
        PRESTEPID,
      </if>
      <if test="opertype != null">
        OPERTYPE,
      </if>
      <if test="operresult != null">
        OPERRESULT,
      </if>
      <if test="createperson != null">
        CREATEPERSON,
      </if>
      <if test="createdate != null">
        CREATEDATE,
      </if>
      <if test="declareperson != null">
        DECLAREPERSON,
      </if>
      <if test="declaredate != null">
        DECLAREDATE,
      </if>
      <if test="approveperson != null">
        APPROVEPERSON,
      </if>
      <if test="approvedate != null">
        APPROVEDATE,
      </if>
      <if test="outercomment != null">
        OUTERCOMMENT,
      </if>
      <if test="innercomment != null">
        INNERCOMMENT,
      </if>
      <if test="extendfield1 != null">
        EXTENDFIELD1,
      </if>
      <if test="extendfield2 != null">
        EXTENDFIELD2,
      </if>
      <if test="extendfield3 != null">
        EXTENDFIELD3,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="baseid != null">
        #{baseid,jdbcType=VARCHAR},
      </if>
      <if test="areacode != null">
        #{areacode,jdbcType=VARCHAR},
      </if>
      <if test="customscode != null">
        #{customscode,jdbcType=VARCHAR},
      </if>
      <if test="tradecode != null">
        #{tradecode,jdbcType=VARCHAR},
      </if>
      <if test="tradename != null">
        #{tradename,jdbcType=VARCHAR},
      </if>
      <if test="inputcode != null">
        #{inputcode,jdbcType=VARCHAR},
      </if>
      <if test="inputname != null">
        #{inputname,jdbcType=VARCHAR},
      </if>
      <if test="declarecode != null">
        #{declarecode,jdbcType=VARCHAR},
      </if>
      <if test="declarename != null">
        #{declarename,jdbcType=VARCHAR},
      </if>
      <if test="stepid != null">
        #{stepid,jdbcType=VARCHAR},
      </if>
      <if test="prestepid != null">
        #{prestepid,jdbcType=VARCHAR},
      </if>
      <if test="opertype != null">
        #{opertype,jdbcType=VARCHAR},
      </if>
      <if test="operresult != null">
        #{operresult,jdbcType=VARCHAR},
      </if>
      <if test="createperson != null">
        #{createperson,jdbcType=VARCHAR},
      </if>
      <if test="createdate != null">
        #{createdate,jdbcType=DATE},
      </if>
      <if test="declareperson != null">
        #{declareperson,jdbcType=VARCHAR},
      </if>
      <if test="declaredate != null">
        #{declaredate,jdbcType=DATE},
      </if>
      <if test="approveperson != null">
        #{approveperson,jdbcType=VARCHAR},
      </if>
      <if test="approvedate != null">
        #{approvedate,jdbcType=DATE},
      </if>
      <if test="outercomment != null">
        #{outercomment,jdbcType=VARCHAR},
      </if>
      <if test="innercomment != null">
        #{innercomment,jdbcType=VARCHAR},
      </if>
      <if test="extendfield1 != null">
        #{extendfield1,jdbcType=VARCHAR},
      </if>
      <if test="extendfield2 != null">
        #{extendfield2,jdbcType=VARCHAR},
      </if>
      <if test="extendfield3 != null">
        #{extendfield3,jdbcType=VARCHAR},
      </if>
    </trim>
  </insert>
  <update id="updateByPrimaryKeySelective" parameterType="com.sy.model.port_manifest_head_stat">
    update port_manifest_head_stat
    <set>
      <if test="areacode != null">
        AREACODE = #{areacode,jdbcType=VARCHAR},
      </if>
      <if test="customscode != null">
        CUSTOMSCODE = #{customscode,jdbcType=VARCHAR},
      </if>
      <if test="tradecode != null">
        TRADECODE = #{tradecode,jdbcType=VARCHAR},
      </if>
      <if test="tradename != null">
        TRADENAME = #{tradename,jdbcType=VARCHAR},
      </if>
      <if test="inputcode != null">
        INPUTCODE = #{inputcode,jdbcType=VARCHAR},
      </if>
      <if test="inputname != null">
        INPUTNAME = #{inputname,jdbcType=VARCHAR},
      </if>
      <if test="declarecode != null">
        DECLARECODE = #{declarecode,jdbcType=VARCHAR},
      </if>
      <if test="declarename != null">
        DECLARENAME = #{declarename,jdbcType=VARCHAR},
      </if>
      <if test="stepid != null">
        STEPID = #{stepid,jdbcType=VARCHAR},
      </if>
      <if test="prestepid != null">
        PRESTEPID = #{prestepid,jdbcType=VARCHAR},
      </if>
      <if test="opertype != null">
        OPERTYPE = #{opertype,jdbcType=VARCHAR},
      </if>
      <if test="operresult != null">
        OPERRESULT = #{operresult,jdbcType=VARCHAR},
      </if>
      <if test="createperson != null">
        CREATEPERSON = #{createperson,jdbcType=VARCHAR},
      </if>
      <if test="createdate != null">
        CREATEDATE = #{createdate,jdbcType=DATE},
      </if>
      <if test="declareperson != null">
        DECLAREPERSON = #{declareperson,jdbcType=VARCHAR},
      </if>
      <if test="declaredate != null">
        DECLAREDATE = #{declaredate,jdbcType=DATE},
      </if>
      <if test="approveperson != null">
        APPROVEPERSON = #{approveperson,jdbcType=VARCHAR},
      </if>
      <if test="approvedate != null">
        APPROVEDATE = #{approvedate,jdbcType=DATE},
      </if>
      <if test="outercomment != null">
        OUTERCOMMENT = #{outercomment,jdbcType=VARCHAR},
      </if>
      <if test="innercomment != null">
        INNERCOMMENT = #{innercomment,jdbcType=VARCHAR},
      </if>
      <if test="extendfield1 != null">
        EXTENDFIELD1 = #{extendfield1,jdbcType=VARCHAR},
      </if>
      <if test="extendfield2 != null">
        EXTENDFIELD2 = #{extendfield2,jdbcType=VARCHAR},
      </if>
      <if test="extendfield3 != null">
        EXTENDFIELD3 = #{extendfield3,jdbcType=VARCHAR},
      </if>
    </set>
    where BASEID = #{baseid,jdbcType=VARCHAR}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.sy.model.port_manifest_head_stat">
    update port_manifest_head_stat
    set AREACODE = #{areacode,jdbcType=VARCHAR},
      CUSTOMSCODE = #{customscode,jdbcType=VARCHAR},
      TRADECODE = #{tradecode,jdbcType=VARCHAR},
      TRADENAME = #{tradename,jdbcType=VARCHAR},
      INPUTCODE = #{inputcode,jdbcType=VARCHAR},
      INPUTNAME = #{inputname,jdbcType=VARCHAR},
      DECLARECODE = #{declarecode,jdbcType=VARCHAR},
      DECLARENAME = #{declarename,jdbcType=VARCHAR},
      STEPID = #{stepid,jdbcType=VARCHAR},
      PRESTEPID = #{prestepid,jdbcType=VARCHAR},
      OPERTYPE = #{opertype,jdbcType=VARCHAR},
      OPERRESULT = #{operresult,jdbcType=VARCHAR},
      CREATEPERSON = #{createperson,jdbcType=VARCHAR},
      CREATEDATE = #{createdate,jdbcType=DATE},
      DECLAREPERSON = #{declareperson,jdbcType=VARCHAR},
      DECLAREDATE = #{declaredate,jdbcType=DATE},
      APPROVEPERSON = #{approveperson,jdbcType=VARCHAR},
      APPROVEDATE = #{approvedate,jdbcType=DATE},
      OUTERCOMMENT = #{outercomment,jdbcType=VARCHAR},
      INNERCOMMENT = #{innercomment,jdbcType=VARCHAR},
      EXTENDFIELD1 = #{extendfield1,jdbcType=VARCHAR},
      EXTENDFIELD2 = #{extendfield2,jdbcType=VARCHAR},
      EXTENDFIELD3 = #{extendfield3,jdbcType=VARCHAR}
    where BASEID = #{baseid,jdbcType=VARCHAR}
  </update>
</mapper>