port_manifest_bodyMapper.xml 10.4 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_bodyMapper">
  <resultMap id="BaseResultMap" type="com.sy.model.port_manifest_body">
    <id column="AUTOID" jdbcType="VARCHAR" property="autoid" />
    <result column="BASEID" jdbcType="VARCHAR" property="baseid" />
    <result column="GJNO" jdbcType="VARCHAR" property="gjno" />
    <result column="BILLNO" jdbcType="VARCHAR" property="billno" />
    <result column="STATUS" jdbcType="VARCHAR" property="status" />
    <result column="LASTCAR" jdbcType="VARCHAR" property="lastcar" />
    <result column="DETNO" jdbcType="VARCHAR" property="detno" />
    <result column="DETFLAG" jdbcType="VARCHAR" property="detflag" />
    <result column="NUM" jdbcType="DECIMAL" property="num" />
    <result column="WT" jdbcType="DECIMAL" property="wt" />
    <result column="WARN" jdbcType="VARCHAR" property="warn" />
    <result column="TOTALNUM" jdbcType="DECIMAL" property="totalnum" />
    <result column="TOTALWT" jdbcType="DECIMAL" property="totalwt" />
    <result column="MEMO" jdbcType="VARCHAR" property="memo" />
    <result column="FLAG1" jdbcType="DECIMAL" property="flag1" />
    <result column="FLAG2" jdbcType="DECIMAL" property="flag2" />
    <result column="FLAG3" jdbcType="VARCHAR" property="flag3" />
    <result column="FLAG4" jdbcType="VARCHAR" property="flag4" />
    <result column="FLAG5" jdbcType="DATE" property="flag5" />
    <result column="REMARK1" jdbcType="VARCHAR" property="remark1" />
    <result column="REMARK2" jdbcType="VARCHAR" property="remark2" />
    <result column="REMARK3" jdbcType="DATE" property="remark3" />
    <result column="REMARK4" jdbcType="DECIMAL" property="remark4" />
    <result column="REMARK" jdbcType="DECIMAL" property="remark" />
  </resultMap>
  <sql id="Base_Column_List">
    AUTOID, BASEID, GJNO, BILLNO, STATUS, LASTCAR, DETNO, DETFLAG, NUM, WT, WARN, TOTALNUM, 
    TOTALWT, MEMO, FLAG1, FLAG2, FLAG3, FLAG4, FLAG5, REMARK1, REMARK2, REMARK3, REMARK4, 
    REMARK
  </sql>
  <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
    select 
    <include refid="Base_Column_List" />
    from port_manifest_body
    where AUTOID = #{autoid,jdbcType=VARCHAR}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
    delete from port_manifest_body
    where AUTOID = #{autoid,jdbcType=VARCHAR}
  </delete>
  <insert id="insert" parameterType="com.sy.model.port_manifest_body">
    insert into port_manifest_body (AUTOID, BASEID, GJNO, 
      BILLNO, STATUS, LASTCAR, 
      DETNO, DETFLAG, NUM, 
      WT, WARN, TOTALNUM, 
      TOTALWT, MEMO, FLAG1, 
      FLAG2, FLAG3, FLAG4, 
      FLAG5, REMARK1, REMARK2, 
      REMARK3, REMARK4, REMARK
      )
    values (#{autoid,jdbcType=VARCHAR}, #{baseid,jdbcType=VARCHAR}, #{gjno,jdbcType=VARCHAR}, 
      #{billno,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR}, #{lastcar,jdbcType=VARCHAR}, 
      #{detno,jdbcType=VARCHAR}, #{detflag,jdbcType=VARCHAR}, #{num,jdbcType=DECIMAL}, 
      #{wt,jdbcType=DECIMAL}, #{warn,jdbcType=VARCHAR}, #{totalnum,jdbcType=DECIMAL}, 
      #{totalwt,jdbcType=DECIMAL}, #{memo,jdbcType=VARCHAR}, #{flag1,jdbcType=DECIMAL}, 
      #{flag2,jdbcType=DECIMAL}, #{flag3,jdbcType=VARCHAR}, #{flag4,jdbcType=VARCHAR}, 
      #{flag5,jdbcType=DATE}, #{remark1,jdbcType=VARCHAR}, #{remark2,jdbcType=VARCHAR}, 
      #{remark3,jdbcType=DATE}, #{remark4,jdbcType=DECIMAL}, #{remark,jdbcType=DECIMAL}
      )
  </insert>
  <insert id="insertSelective" parameterType="com.sy.model.port_manifest_body">
    insert into port_manifest_body
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="autoid != null">
        AUTOID,
      </if>
      <if test="baseid != null">
        BASEID,
      </if>
      <if test="gjno != null">
        GJNO,
      </if>
      <if test="billno != null">
        BILLNO,
      </if>
      <if test="status != null">
        STATUS,
      </if>
      <if test="lastcar != null">
        LASTCAR,
      </if>
      <if test="detno != null">
        DETNO,
      </if>
      <if test="detflag != null">
        DETFLAG,
      </if>
      <if test="num != null">
        NUM,
      </if>
      <if test="wt != null">
        WT,
      </if>
      <if test="warn != null">
        WARN,
      </if>
      <if test="totalnum != null">
        TOTALNUM,
      </if>
      <if test="totalwt != null">
        TOTALWT,
      </if>
      <if test="memo != null">
        MEMO,
      </if>
      <if test="flag1 != null">
        FLAG1,
      </if>
      <if test="flag2 != null">
        FLAG2,
      </if>
      <if test="flag3 != null">
        FLAG3,
      </if>
      <if test="flag4 != null">
        FLAG4,
      </if>
      <if test="flag5 != null">
        FLAG5,
      </if>
      <if test="remark1 != null">
        REMARK1,
      </if>
      <if test="remark2 != null">
        REMARK2,
      </if>
      <if test="remark3 != null">
        REMARK3,
      </if>
      <if test="remark4 != null">
        REMARK4,
      </if>
      <if test="remark != null">
        REMARK,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="autoid != null">
        #{autoid,jdbcType=VARCHAR},
      </if>
      <if test="baseid != null">
        #{baseid,jdbcType=VARCHAR},
      </if>
      <if test="gjno != null">
        #{gjno,jdbcType=VARCHAR},
      </if>
      <if test="billno != null">
        #{billno,jdbcType=VARCHAR},
      </if>
      <if test="status != null">
        #{status,jdbcType=VARCHAR},
      </if>
      <if test="lastcar != null">
        #{lastcar,jdbcType=VARCHAR},
      </if>
      <if test="detno != null">
        #{detno,jdbcType=VARCHAR},
      </if>
      <if test="detflag != null">
        #{detflag,jdbcType=VARCHAR},
      </if>
      <if test="num != null">
        #{num,jdbcType=DECIMAL},
      </if>
      <if test="wt != null">
        #{wt,jdbcType=DECIMAL},
      </if>
      <if test="warn != null">
        #{warn,jdbcType=VARCHAR},
      </if>
      <if test="totalnum != null">
        #{totalnum,jdbcType=DECIMAL},
      </if>
      <if test="totalwt != null">
        #{totalwt,jdbcType=DECIMAL},
      </if>
      <if test="memo != null">
        #{memo,jdbcType=VARCHAR},
      </if>
      <if test="flag1 != null">
        #{flag1,jdbcType=DECIMAL},
      </if>
      <if test="flag2 != null">
        #{flag2,jdbcType=DECIMAL},
      </if>
      <if test="flag3 != null">
        #{flag3,jdbcType=VARCHAR},
      </if>
      <if test="flag4 != null">
        #{flag4,jdbcType=VARCHAR},
      </if>
      <if test="flag5 != null">
        #{flag5,jdbcType=DATE},
      </if>
      <if test="remark1 != null">
        #{remark1,jdbcType=VARCHAR},
      </if>
      <if test="remark2 != null">
        #{remark2,jdbcType=VARCHAR},
      </if>
      <if test="remark3 != null">
        #{remark3,jdbcType=DATE},
      </if>
      <if test="remark4 != null">
        #{remark4,jdbcType=DECIMAL},
      </if>
      <if test="remark != null">
        #{remark,jdbcType=DECIMAL},
      </if>
    </trim>
  </insert>
  <update id="updateByPrimaryKeySelective" parameterType="com.sy.model.port_manifest_body">
    update port_manifest_body
    <set>
      <if test="baseid != null">
        BASEID = #{baseid,jdbcType=VARCHAR},
      </if>
      <if test="gjno != null">
        GJNO = #{gjno,jdbcType=VARCHAR},
      </if>
      <if test="billno != null">
        BILLNO = #{billno,jdbcType=VARCHAR},
      </if>
      <if test="status != null">
        STATUS = #{status,jdbcType=VARCHAR},
      </if>
      <if test="lastcar != null">
        LASTCAR = #{lastcar,jdbcType=VARCHAR},
      </if>
      <if test="detno != null">
        DETNO = #{detno,jdbcType=VARCHAR},
      </if>
      <if test="detflag != null">
        DETFLAG = #{detflag,jdbcType=VARCHAR},
      </if>
      <if test="num != null">
        NUM = #{num,jdbcType=DECIMAL},
      </if>
      <if test="wt != null">
        WT = #{wt,jdbcType=DECIMAL},
      </if>
      <if test="warn != null">
        WARN = #{warn,jdbcType=VARCHAR},
      </if>
      <if test="totalnum != null">
        TOTALNUM = #{totalnum,jdbcType=DECIMAL},
      </if>
      <if test="totalwt != null">
        TOTALWT = #{totalwt,jdbcType=DECIMAL},
      </if>
      <if test="memo != null">
        MEMO = #{memo,jdbcType=VARCHAR},
      </if>
      <if test="flag1 != null">
        FLAG1 = #{flag1,jdbcType=DECIMAL},
      </if>
      <if test="flag2 != null">
        FLAG2 = #{flag2,jdbcType=DECIMAL},
      </if>
      <if test="flag3 != null">
        FLAG3 = #{flag3,jdbcType=VARCHAR},
      </if>
      <if test="flag4 != null">
        FLAG4 = #{flag4,jdbcType=VARCHAR},
      </if>
      <if test="flag5 != null">
        FLAG5 = #{flag5,jdbcType=DATE},
      </if>
      <if test="remark1 != null">
        REMARK1 = #{remark1,jdbcType=VARCHAR},
      </if>
      <if test="remark2 != null">
        REMARK2 = #{remark2,jdbcType=VARCHAR},
      </if>
      <if test="remark3 != null">
        REMARK3 = #{remark3,jdbcType=DATE},
      </if>
      <if test="remark4 != null">
        REMARK4 = #{remark4,jdbcType=DECIMAL},
      </if>
      <if test="remark != null">
        REMARK = #{remark,jdbcType=DECIMAL},
      </if>
    </set>
    where AUTOID = #{autoid,jdbcType=VARCHAR}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.sy.model.port_manifest_body">
    update port_manifest_body
    set BASEID = #{baseid,jdbcType=VARCHAR},
      GJNO = #{gjno,jdbcType=VARCHAR},
      BILLNO = #{billno,jdbcType=VARCHAR},
      STATUS = #{status,jdbcType=VARCHAR},
      LASTCAR = #{lastcar,jdbcType=VARCHAR},
      DETNO = #{detno,jdbcType=VARCHAR},
      DETFLAG = #{detflag,jdbcType=VARCHAR},
      NUM = #{num,jdbcType=DECIMAL},
      WT = #{wt,jdbcType=DECIMAL},
      WARN = #{warn,jdbcType=VARCHAR},
      TOTALNUM = #{totalnum,jdbcType=DECIMAL},
      TOTALWT = #{totalwt,jdbcType=DECIMAL},
      MEMO = #{memo,jdbcType=VARCHAR},
      FLAG1 = #{flag1,jdbcType=DECIMAL},
      FLAG2 = #{flag2,jdbcType=DECIMAL},
      FLAG3 = #{flag3,jdbcType=VARCHAR},
      FLAG4 = #{flag4,jdbcType=VARCHAR},
      FLAG5 = #{flag5,jdbcType=DATE},
      REMARK1 = #{remark1,jdbcType=VARCHAR},
      REMARK2 = #{remark2,jdbcType=VARCHAR},
      REMARK3 = #{remark3,jdbcType=DATE},
      REMARK4 = #{remark4,jdbcType=DECIMAL},
      REMARK = #{remark,jdbcType=DECIMAL}
    where AUTOID = #{autoid,jdbcType=VARCHAR}
  </update>
</mapper>