ARRIVEDSECONDARYMapper.xml 15.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.tianbo.analysis.dao.ARRIVEDSECONDARYMapper" >
  <resultMap id="BaseResultMap" type="com.tianbo.analysis.model.ARRIVEDSECONDARY" >
    <id column="AUTOID" property="autoid" jdbcType="VARCHAR" />
    <result column="WAYBILLNOMASTER" property="waybillnomaster" jdbcType="VARCHAR" />
    <result column="TCD_NAME" property="tcdName" jdbcType="VARCHAR" />
    <result column="TCD_TYPECODE" property="tcdTypecode" jdbcType="VARCHAR" />
    <result column="WAYBILLNOSECONDARY" property="waybillnosecondary" jdbcType="VARCHAR" />
    <result column="CARRIER" property="carrier" jdbcType="VARCHAR" />
    <result column="O_ID" property="oId" jdbcType="VARCHAR" />
    <result column="O_NAME" property="oName" jdbcType="VARCHAR" />
    <result column="FD_ID" property="fdId" jdbcType="VARCHAR" />
    <result column="FD_NAME" property="fdName" jdbcType="VARCHAR" />
    <result column="FLIGHTNO" property="flightno" jdbcType="VARCHAR" />
    <result column="FLIGHTDATE" property="flightdate" jdbcType="TIMESTAMP" />
    <result column="ARRIVEDTOTALPIECE" property="arrivedtotalpiece" jdbcType="VARCHAR" />
    <result column="TOTALPIECEQUANTITY" property="totalpiecequantity" jdbcType="VARCHAR" />
    <result column="ARRIVEDTOTALWEIGHT" property="arrivedtotalweight" jdbcType="VARCHAR" />
    <result column="GROSSWEIGHTMEASUREUC" property="grossweightmeasureuc" jdbcType="VARCHAR" />
    <result column="TOTALGROSSWEIGHTMEASURE" property="totalgrossweightmeasure" jdbcType="VARCHAR" />
    <result column="TOTALGROSSWEIGHTMEASUREUC" property="totalgrossweightmeasureuc" jdbcType="VARCHAR" />
    <result column="CHARGEABLEWEIGHTMEASURE" property="chargeableweightmeasure" jdbcType="VARCHAR" />
    <result column="CHARGEABLEWEIGHTMEASUREUC" property="chargeableweightmeasureuc" jdbcType="VARCHAR" />
    <result column="ARRIVEDDATE" property="arriveddate" jdbcType="TIMESTAMP" />
    <result column="CUSTOMSCODE" property="customscode" jdbcType="VARCHAR" />
    <result column="PRODUCTNAME" property="productname" jdbcType="VARCHAR" />
    <result column="CREATEDATE" property="createdate" jdbcType="TIMESTAMP" />
    <result column="ARRIVEDMASTERID" property="arrivedmasterid" jdbcType="VARCHAR" />
    <result column="TRANSPORTSPLITDESCRIPTION" property="transportsplitdescription" jdbcType="VARCHAR" />
    <result column="RECEIPTION" property="receiption" jdbcType="VARCHAR" />
    <result column="STATUS" property="status" jdbcType="VARCHAR" />
  </resultMap>
  <sql id="Base_Column_List" >
    AUTOID, WAYBILLNOMASTER, TCD_NAME, TCD_TYPECODE, WAYBILLNOSECONDARY, CARRIER, O_ID,
    O_NAME, FD_ID, FD_NAME, FLIGHTNO, FLIGHTDATE, ARRIVEDTOTALPIECE, TOTALPIECEQUANTITY,
    ARRIVEDTOTALWEIGHT, GROSSWEIGHTMEASUREUC, TOTALGROSSWEIGHTMEASURE, TOTALGROSSWEIGHTMEASUREUC,
    CHARGEABLEWEIGHTMEASURE, CHARGEABLEWEIGHTMEASUREUC, ARRIVEDDATE, CUSTOMSCODE, PRODUCTNAME,
    CREATEDATE, ARRIVEDMASTERID, TRANSPORTSPLITDESCRIPTION, RECEIPTION, STATUS
  </sql>
  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
    select
    <include refid="Base_Column_List" />
    from CGONMS.ARRIVEDSECONDARY
    where AUTOID = #{autoid,jdbcType=VARCHAR}
  </select>
  <select id="selectByWaybillNo" resultMap="BaseResultMap" parameterType="com.tianbo.analysis.model.ARRIVEDSECONDARY" >
    select
    <include refid="Base_Column_List" />
    from CGONMS.ARRIVEDSECONDARY
    where WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR}
    and WAYBILLNOSECONDARY = #{waybillnosecondary,jdbcType=VARCHAR}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
    delete from CGONMS.ARRIVEDSECONDARY
    where AUTOID = #{autoid,jdbcType=VARCHAR}
  </delete>
  <insert id="insert" parameterType="com.tianbo.analysis.model.ARRIVEDSECONDARY" >
    insert into CGONMS.ARRIVEDSECONDARY (AUTOID, WAYBILLNOMASTER, TCD_NAME,
      TCD_TYPECODE, WAYBILLNOSECONDARY, CARRIER,
      O_ID, O_NAME, FD_ID, FD_NAME,
      FLIGHTNO, FLIGHTDATE, ARRIVEDTOTALPIECE,
      TOTALPIECEQUANTITY, ARRIVEDTOTALWEIGHT,
      GROSSWEIGHTMEASUREUC, TOTALGROSSWEIGHTMEASURE,
      TOTALGROSSWEIGHTMEASUREUC, CHARGEABLEWEIGHTMEASURE,
      CHARGEABLEWEIGHTMEASUREUC, ARRIVEDDATE,
      CUSTOMSCODE, PRODUCTNAME, CREATEDATE,
      ARRIVEDMASTERID, TRANSPORTSPLITDESCRIPTION,
      RECEIPTION, STATUS)
    values (#{autoid,jdbcType=VARCHAR}, #{waybillnomaster,jdbcType=VARCHAR}, #{tcdName,jdbcType=VARCHAR},
      #{tcdTypecode,jdbcType=VARCHAR}, #{waybillnosecondary,jdbcType=VARCHAR}, #{carrier,jdbcType=VARCHAR},
      #{oId,jdbcType=VARCHAR}, #{oName,jdbcType=VARCHAR}, #{fdId,jdbcType=VARCHAR}, #{fdName,jdbcType=VARCHAR},
      #{flightno,jdbcType=VARCHAR}, #{flightdate,jdbcType=TIMESTAMP}, #{arrivedtotalpiece,jdbcType=VARCHAR},
      #{totalpiecequantity,jdbcType=VARCHAR}, #{arrivedtotalweight,jdbcType=VARCHAR},
      #{grossweightmeasureuc,jdbcType=VARCHAR}, #{totalgrossweightmeasure,jdbcType=VARCHAR},
      #{totalgrossweightmeasureuc,jdbcType=VARCHAR}, #{chargeableweightmeasure,jdbcType=VARCHAR},
      #{chargeableweightmeasureuc,jdbcType=VARCHAR}, #{arriveddate,jdbcType=TIMESTAMP},
      #{customscode,jdbcType=VARCHAR}, #{productname,jdbcType=VARCHAR}, #{createdate,jdbcType=TIMESTAMP},
      #{arrivedmasterid,jdbcType=VARCHAR}, #{transportsplitdescription,jdbcType=VARCHAR},
      #{receiption,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR})
  </insert>
  <insert id="insertSelective" parameterType="com.tianbo.analysis.model.ARRIVEDSECONDARY" >
    insert into CGONMS.ARRIVEDSECONDARY
    <trim prefix="(" suffix=")" suffixOverrides="," >
      <if test="autoid != null" >
        AUTOID,
      </if>
      <if test="waybillnomaster != null" >
        WAYBILLNOMASTER,
      </if>
      <if test="tcdName != null" >
        TCD_NAME,
      </if>
      <if test="tcdTypecode != null" >
        TCD_TYPECODE,
      </if>
      <if test="waybillnosecondary != null" >
        WAYBILLNOSECONDARY,
      </if>
      <if test="carrier != null" >
        CARRIER,
      </if>
      <if test="oId != null" >
        O_ID,
      </if>
      <if test="oName != null" >
        O_NAME,
      </if>
      <if test="fdId != null" >
        FD_ID,
      </if>
      <if test="fdName != null" >
        FD_NAME,
      </if>
      <if test="flightno != null" >
        FLIGHTNO,
      </if>
      <if test="flightdate != null" >
        FLIGHTDATE,
      </if>
      <if test="arrivedtotalpiece != null" >
        ARRIVEDTOTALPIECE,
      </if>
      <if test="totalpiecequantity != null" >
        TOTALPIECEQUANTITY,
      </if>
      <if test="arrivedtotalweight != null" >
        ARRIVEDTOTALWEIGHT,
      </if>
      <if test="grossweightmeasureuc != null" >
        GROSSWEIGHTMEASUREUC,
      </if>
      <if test="totalgrossweightmeasure != null" >
        TOTALGROSSWEIGHTMEASURE,
      </if>
      <if test="totalgrossweightmeasureuc != null" >
        TOTALGROSSWEIGHTMEASUREUC,
      </if>
      <if test="chargeableweightmeasure != null" >
        CHARGEABLEWEIGHTMEASURE,
      </if>
      <if test="chargeableweightmeasureuc != null" >
        CHARGEABLEWEIGHTMEASUREUC,
      </if>
      <if test="arriveddate != null" >
        ARRIVEDDATE,
      </if>
      <if test="customscode != null" >
        CUSTOMSCODE,
      </if>
      <if test="productname != null" >
        PRODUCTNAME,
      </if>
      <if test="createdate != null" >
        CREATEDATE,
      </if>
      <if test="arrivedmasterid != null" >
        ARRIVEDMASTERID,
      </if>
      <if test="transportsplitdescription != null" >
        TRANSPORTSPLITDESCRIPTION,
      </if>
      <if test="receiption != null" >
        RECEIPTION,
      </if>
      <if test="status != null" >
        STATUS,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides="," >
      <if test="autoid != null" >
        #{autoid,jdbcType=VARCHAR},
      </if>
      <if test="waybillnomaster != null" >
        #{waybillnomaster,jdbcType=VARCHAR},
      </if>
      <if test="tcdName != null" >
        #{tcdName,jdbcType=VARCHAR},
      </if>
      <if test="tcdTypecode != null" >
        #{tcdTypecode,jdbcType=VARCHAR},
      </if>
      <if test="waybillnosecondary != null" >
        #{waybillnosecondary,jdbcType=VARCHAR},
      </if>
      <if test="carrier != null" >
        #{carrier,jdbcType=VARCHAR},
      </if>
      <if test="oId != null" >
        #{oId,jdbcType=VARCHAR},
      </if>
      <if test="oName != null" >
        #{oName,jdbcType=VARCHAR},
      </if>
      <if test="fdId != null" >
        #{fdId,jdbcType=VARCHAR},
      </if>
      <if test="fdName != null" >
        #{fdName,jdbcType=VARCHAR},
      </if>
      <if test="flightno != null" >
        #{flightno,jdbcType=VARCHAR},
      </if>
      <if test="flightdate != null" >
        #{flightdate,jdbcType=TIMESTAMP},
      </if>
      <if test="arrivedtotalpiece != null" >
        #{arrivedtotalpiece,jdbcType=VARCHAR},
      </if>
      <if test="totalpiecequantity != null" >
        #{totalpiecequantity,jdbcType=VARCHAR},
      </if>
      <if test="arrivedtotalweight != null" >
        #{arrivedtotalweight,jdbcType=VARCHAR},
      </if>
      <if test="grossweightmeasureuc != null" >
        #{grossweightmeasureuc,jdbcType=VARCHAR},
      </if>
      <if test="totalgrossweightmeasure != null" >
        #{totalgrossweightmeasure,jdbcType=VARCHAR},
      </if>
      <if test="totalgrossweightmeasureuc != null" >
        #{totalgrossweightmeasureuc,jdbcType=VARCHAR},
      </if>
      <if test="chargeableweightmeasure != null" >
        #{chargeableweightmeasure,jdbcType=VARCHAR},
      </if>
      <if test="chargeableweightmeasureuc != null" >
        #{chargeableweightmeasureuc,jdbcType=VARCHAR},
      </if>
      <if test="arriveddate != null" >
        #{arriveddate,jdbcType=TIMESTAMP},
      </if>
      <if test="customscode != null" >
        #{customscode,jdbcType=VARCHAR},
      </if>
      <if test="productname != null" >
        #{productname,jdbcType=VARCHAR},
      </if>
      <if test="createdate != null" >
        #{createdate,jdbcType=TIMESTAMP},
      </if>
      <if test="arrivedmasterid != null" >
        #{arrivedmasterid,jdbcType=VARCHAR},
      </if>
      <if test="transportsplitdescription != null" >
        #{transportsplitdescription,jdbcType=VARCHAR},
      </if>
      <if test="receiption != null" >
        #{receiption,jdbcType=VARCHAR},
      </if>
      <if test="status != null" >
        #{status,jdbcType=VARCHAR},
      </if>
    </trim>
  </insert>
  <update id="updateByPrimaryKeySelective" parameterType="com.tianbo.analysis.model.ARRIVEDSECONDARY" >
    update CGONMS.ARRIVEDSECONDARY
    <set >
      <if test="waybillnomaster != null" >
        WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR},
      </if>
      <if test="tcdName != null" >
        TCD_NAME = #{tcdName,jdbcType=VARCHAR},
      </if>
      <if test="tcdTypecode != null" >
        TCD_TYPECODE = #{tcdTypecode,jdbcType=VARCHAR},
      </if>
      <if test="waybillnosecondary != null" >
        WAYBILLNOSECONDARY = #{waybillnosecondary,jdbcType=VARCHAR},
      </if>
      <if test="carrier != null" >
        CARRIER = #{carrier,jdbcType=VARCHAR},
      </if>
      <if test="oId != null" >
        O_ID = #{oId,jdbcType=VARCHAR},
      </if>
      <if test="oName != null" >
        O_NAME = #{oName,jdbcType=VARCHAR},
      </if>
      <if test="fdId != null" >
        FD_ID = #{fdId,jdbcType=VARCHAR},
      </if>
      <if test="fdName != null" >
        FD_NAME = #{fdName,jdbcType=VARCHAR},
      </if>
      <if test="flightno != null" >
        FLIGHTNO = #{flightno,jdbcType=VARCHAR},
      </if>
      <if test="flightdate != null" >
        FLIGHTDATE = #{flightdate,jdbcType=TIMESTAMP},
      </if>
      <if test="arrivedtotalpiece != null" >
        ARRIVEDTOTALPIECE = #{arrivedtotalpiece,jdbcType=VARCHAR},
      </if>
      <if test="totalpiecequantity != null" >
        TOTALPIECEQUANTITY = #{totalpiecequantity,jdbcType=VARCHAR},
      </if>
      <if test="arrivedtotalweight != null" >
        ARRIVEDTOTALWEIGHT = #{arrivedtotalweight,jdbcType=VARCHAR},
      </if>
      <if test="grossweightmeasureuc != null" >
        GROSSWEIGHTMEASUREUC = #{grossweightmeasureuc,jdbcType=VARCHAR},
      </if>
      <if test="totalgrossweightmeasure != null" >
        TOTALGROSSWEIGHTMEASURE = #{totalgrossweightmeasure,jdbcType=VARCHAR},
      </if>
      <if test="totalgrossweightmeasureuc != null" >
        TOTALGROSSWEIGHTMEASUREUC = #{totalgrossweightmeasureuc,jdbcType=VARCHAR},
      </if>
      <if test="chargeableweightmeasure != null" >
        CHARGEABLEWEIGHTMEASURE = #{chargeableweightmeasure,jdbcType=VARCHAR},
      </if>
      <if test="chargeableweightmeasureuc != null" >
        CHARGEABLEWEIGHTMEASUREUC = #{chargeableweightmeasureuc,jdbcType=VARCHAR},
      </if>
      <if test="arriveddate != null" >
        ARRIVEDDATE = #{arriveddate,jdbcType=TIMESTAMP},
      </if>
      <if test="customscode != null" >
        CUSTOMSCODE = #{customscode,jdbcType=VARCHAR},
      </if>
      <if test="productname != null" >
        PRODUCTNAME = #{productname,jdbcType=VARCHAR},
      </if>
      <if test="createdate != null" >
        CREATEDATE = #{createdate,jdbcType=TIMESTAMP},
      </if>
      <if test="arrivedmasterid != null" >
        ARRIVEDMASTERID = #{arrivedmasterid,jdbcType=VARCHAR},
      </if>
      <if test="transportsplitdescription != null" >
        TRANSPORTSPLITDESCRIPTION = #{transportsplitdescription,jdbcType=VARCHAR},
      </if>
      <if test="receiption != null" >
        RECEIPTION = #{receiption,jdbcType=VARCHAR},
      </if>
      <if test="status != null" >
        STATUS = #{status,jdbcType=VARCHAR},
      </if>
    </set>
    where AUTOID = #{autoid,jdbcType=VARCHAR}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.tianbo.analysis.model.ARRIVEDSECONDARY" >
    update CGONMS.ARRIVEDSECONDARY
    set WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR},
      TCD_NAME = #{tcdName,jdbcType=VARCHAR},
      TCD_TYPECODE = #{tcdTypecode,jdbcType=VARCHAR},
      WAYBILLNOSECONDARY = #{waybillnosecondary,jdbcType=VARCHAR},
      CARRIER = #{carrier,jdbcType=VARCHAR},
      O_ID = #{oId,jdbcType=VARCHAR},
      O_NAME = #{oName,jdbcType=VARCHAR},
      FD_ID = #{fdId,jdbcType=VARCHAR},
      FD_NAME = #{fdName,jdbcType=VARCHAR},
      FLIGHTNO = #{flightno,jdbcType=VARCHAR},
      FLIGHTDATE = #{flightdate,jdbcType=TIMESTAMP},
      ARRIVEDTOTALPIECE = #{arrivedtotalpiece,jdbcType=VARCHAR},
      TOTALPIECEQUANTITY = #{totalpiecequantity,jdbcType=VARCHAR},
      ARRIVEDTOTALWEIGHT = #{arrivedtotalweight,jdbcType=VARCHAR},
      GROSSWEIGHTMEASUREUC = #{grossweightmeasureuc,jdbcType=VARCHAR},
      TOTALGROSSWEIGHTMEASURE = #{totalgrossweightmeasure,jdbcType=VARCHAR},
      TOTALGROSSWEIGHTMEASUREUC = #{totalgrossweightmeasureuc,jdbcType=VARCHAR},
      CHARGEABLEWEIGHTMEASURE = #{chargeableweightmeasure,jdbcType=VARCHAR},
      CHARGEABLEWEIGHTMEASUREUC = #{chargeableweightmeasureuc,jdbcType=VARCHAR},
      ARRIVEDDATE = #{arriveddate,jdbcType=TIMESTAMP},
      CUSTOMSCODE = #{customscode,jdbcType=VARCHAR},
      PRODUCTNAME = #{productname,jdbcType=VARCHAR},
      CREATEDATE = #{createdate,jdbcType=TIMESTAMP},
      ARRIVEDMASTERID = #{arrivedmasterid,jdbcType=VARCHAR},
      TRANSPORTSPLITDESCRIPTION = #{transportsplitdescription,jdbcType=VARCHAR},
      RECEIPTION = #{receiption,jdbcType=VARCHAR},
      STATUS = #{status,jdbcType=VARCHAR}
    where AUTOID = #{autoid,jdbcType=VARCHAR}
  </update>
</mapper>