originmanifestsecondaryMapper.xml 11.3 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.OriginmanifestsecondaryMapper" >
  <resultMap id="BaseResultMap" type="com.tianbo.analysis.model.Originmanifestsecondary" >
    <result column="AUTOID" property="autoid" jdbcType="VARCHAR" />
    <result column="WAYBILLNOMASTER" property="waybillnomaster" jdbcType="VARCHAR" />
    <result column="WAYBILLNOSECONDARY" property="waybillnosecondary" jdbcType="VARCHAR" />
    <result column="WEIGHT" property="weight" jdbcType="VARCHAR" />
    <result column="PIECE" property="piece" jdbcType="VARCHAR" />
    <result column="MANIFESTPIECE" property="manifestpiece" jdbcType="VARCHAR" />
    <result column="MANIFESTWEIGHT" property="manifestweight" jdbcType="VARCHAR" />
    <result column="PRODUCTNAME" property="productname" jdbcType="VARCHAR" />
    <result column="PAYMODE" property="paymode" jdbcType="VARCHAR" />
    <result column="SPECIALGOODSCODE" property="specialgoodscode" jdbcType="VARCHAR" />
    <result column="CUSTOMSCODE" property="customscode" jdbcType="VARCHAR" />
    <result column="SHIPPERNAME" property="shippername" jdbcType="VARCHAR" />
    <result column="SHIPPERADDRESS" property="shipperaddress" jdbcType="VARCHAR" />
    <result column="CONSIGNEENAME" property="consigneename" jdbcType="VARCHAR" />
    <result column="CONSIGNEEADDRESS" property="consigneeaddress" jdbcType="VARCHAR" />
    <result column="CREATEDATE" property="createdate" jdbcType="TIMESTAMP" />
    <result column="ORIGINMANIFESTMASTERAUTOID" property="originmanifestmasterautoid" jdbcType="VARCHAR" />
    <result column="CUSTOMSSTATUS" property="customsstatus" jdbcType="VARCHAR" />
    <result column="STATUS" property="status" jdbcType="VARCHAR" />
    <result column="RECEIPTION" property="receiption" jdbcType="VARCHAR" />
    <result column="ORIGINATINGSTATION_BILL" property="originatingstationBill" jdbcType="VARCHAR" />
    <result column="DESTINATIONSTATION_BILL" property="destinationstationBill" jdbcType="VARCHAR" />
    <result column="SHIPPER_CODE" property="shipperCode" jdbcType="VARCHAR" />
    <result column="SHIPPER_COUNTRYCODE" property="shipperCountrycode" jdbcType="VARCHAR" />
    <result column="SHIPPER_PHONE" property="shipperPhone" jdbcType="VARCHAR" />
    <result column="SHIPPER_FAX" property="shipperFax" jdbcType="VARCHAR" />
    <result column="CONSIGNEE_CODE" property="consigneeCode" jdbcType="VARCHAR" />
    <result column="CONSIGNEE_COUNTRYCODE" property="consigneeCountrycode" jdbcType="VARCHAR" />
    <result column="CONSIGNEE_FAX" property="consigneeFax" jdbcType="VARCHAR" />
    <result column="SPECIFIC_CONSIGNEENAME" property="specificConsigneename" jdbcType="VARCHAR" />
    <result column="SPECIFIC_CONSIGNEE_PHONE" property="specificConsigneePhone" jdbcType="VARCHAR" />
    <result column="CONSIGNEE_PHONE" property="consigneePhone" jdbcType="VARCHAR" />
  </resultMap>
  <insert id="insert" parameterType="com.tianbo.analysis.model.Originmanifestsecondary" >
    insert into ORIGINMANIFESTSECONDARY (AUTOID, WAYBILLNOMASTER, WAYBILLNOSECONDARY, 
      WEIGHT, PIECE, MANIFESTPIECE, 
      MANIFESTWEIGHT, PRODUCTNAME, PAYMODE, 
      SPECIALGOODSCODE, CUSTOMSCODE, SHIPPERNAME, 
      SHIPPERADDRESS, CONSIGNEENAME, CONSIGNEEADDRESS, 
      CREATEDATE, ORIGINMANIFESTMASTERAUTOID, 
      CUSTOMSSTATUS, STATUS, RECEIPTION, 
      ORIGINATINGSTATION_BILL, DESTINATIONSTATION_BILL, 
      SHIPPER_CODE, SHIPPER_COUNTRYCODE, SHIPPER_PHONE, 
      SHIPPER_FAX, CONSIGNEE_CODE, CONSIGNEE_COUNTRYCODE, 
      CONSIGNEE_FAX, SPECIFIC_CONSIGNEENAME, SPECIFIC_CONSIGNEE_PHONE, 
      CONSIGNEE_PHONE)
    values (#{autoid,jdbcType=VARCHAR}, #{waybillnomaster,jdbcType=VARCHAR}, #{waybillnosecondary,jdbcType=VARCHAR}, 
      #{weight,jdbcType=VARCHAR}, #{piece,jdbcType=VARCHAR}, #{manifestpiece,jdbcType=VARCHAR}, 
      #{manifestweight,jdbcType=VARCHAR}, #{productname,jdbcType=VARCHAR}, #{paymode,jdbcType=VARCHAR}, 
      #{specialgoodscode,jdbcType=VARCHAR}, #{customscode,jdbcType=VARCHAR}, #{shippername,jdbcType=VARCHAR}, 
      #{shipperaddress,jdbcType=VARCHAR}, #{consigneename,jdbcType=VARCHAR}, #{consigneeaddress,jdbcType=VARCHAR}, 
      #{createdate,jdbcType=TIMESTAMP}, #{originmanifestmasterautoid,jdbcType=VARCHAR}, 
      #{customsstatus,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR}, #{receiption,jdbcType=VARCHAR}, 
      #{originatingstationBill,jdbcType=VARCHAR}, #{destinationstationBill,jdbcType=VARCHAR}, 
      #{shipperCode,jdbcType=VARCHAR}, #{shipperCountrycode,jdbcType=VARCHAR}, #{shipperPhone,jdbcType=VARCHAR}, 
      #{shipperFax,jdbcType=VARCHAR}, #{consigneeCode,jdbcType=VARCHAR}, #{consigneeCountrycode,jdbcType=VARCHAR}, 
      #{consigneeFax,jdbcType=VARCHAR}, #{specificConsigneename,jdbcType=VARCHAR}, #{specificConsigneePhone,jdbcType=VARCHAR}, 
      #{consigneePhone,jdbcType=VARCHAR})
  </insert>
  <insert id="insertSelective" parameterType="com.tianbo.analysis.model.Originmanifestsecondary" >
    insert into ORIGINMANIFESTSECONDARY
    <trim prefix="(" suffix=")" suffixOverrides="," >
      <if test="autoid != null" >
        AUTOID,
      </if>
      <if test="waybillnomaster != null" >
        WAYBILLNOMASTER,
      </if>
      <if test="waybillnosecondary != null" >
        WAYBILLNOSECONDARY,
      </if>
      <if test="weight != null" >
        WEIGHT,
      </if>
      <if test="piece != null" >
        PIECE,
      </if>
      <if test="manifestpiece != null" >
        MANIFESTPIECE,
      </if>
      <if test="manifestweight != null" >
        MANIFESTWEIGHT,
      </if>
      <if test="productname != null" >
        PRODUCTNAME,
      </if>
      <if test="paymode != null" >
        PAYMODE,
      </if>
      <if test="specialgoodscode != null" >
        SPECIALGOODSCODE,
      </if>
      <if test="customscode != null" >
        CUSTOMSCODE,
      </if>
      <if test="shippername != null" >
        SHIPPERNAME,
      </if>
      <if test="shipperaddress != null" >
        SHIPPERADDRESS,
      </if>
      <if test="consigneename != null" >
        CONSIGNEENAME,
      </if>
      <if test="consigneeaddress != null" >
        CONSIGNEEADDRESS,
      </if>
      <if test="createdate != null" >
        CREATEDATE,
      </if>
      <if test="originmanifestmasterautoid != null" >
        ORIGINMANIFESTMASTERAUTOID,
      </if>
      <if test="customsstatus != null" >
        CUSTOMSSTATUS,
      </if>
      <if test="status != null" >
        STATUS,
      </if>
      <if test="receiption != null" >
        RECEIPTION,
      </if>
      <if test="originatingstationBill != null" >
        ORIGINATINGSTATION_BILL,
      </if>
      <if test="destinationstationBill != null" >
        DESTINATIONSTATION_BILL,
      </if>
      <if test="shipperCode != null" >
        SHIPPER_CODE,
      </if>
      <if test="shipperCountrycode != null" >
        SHIPPER_COUNTRYCODE,
      </if>
      <if test="shipperPhone != null" >
        SHIPPER_PHONE,
      </if>
      <if test="shipperFax != null" >
        SHIPPER_FAX,
      </if>
      <if test="consigneeCode != null" >
        CONSIGNEE_CODE,
      </if>
      <if test="consigneeCountrycode != null" >
        CONSIGNEE_COUNTRYCODE,
      </if>
      <if test="consigneeFax != null" >
        CONSIGNEE_FAX,
      </if>
      <if test="specificConsigneename != null" >
        SPECIFIC_CONSIGNEENAME,
      </if>
      <if test="specificConsigneePhone != null" >
        SPECIFIC_CONSIGNEE_PHONE,
      </if>
      <if test="consigneePhone != null" >
        CONSIGNEE_PHONE,
      </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="waybillnosecondary != null" >
        #{waybillnosecondary,jdbcType=VARCHAR},
      </if>
      <if test="weight != null" >
        #{weight,jdbcType=VARCHAR},
      </if>
      <if test="piece != null" >
        #{piece,jdbcType=VARCHAR},
      </if>
      <if test="manifestpiece != null" >
        #{manifestpiece,jdbcType=VARCHAR},
      </if>
      <if test="manifestweight != null" >
        #{manifestweight,jdbcType=VARCHAR},
      </if>
      <if test="productname != null" >
        #{productname,jdbcType=VARCHAR},
      </if>
      <if test="paymode != null" >
        #{paymode,jdbcType=VARCHAR},
      </if>
      <if test="specialgoodscode != null" >
        #{specialgoodscode,jdbcType=VARCHAR},
      </if>
      <if test="customscode != null" >
        #{customscode,jdbcType=VARCHAR},
      </if>
      <if test="shippername != null" >
        #{shippername,jdbcType=VARCHAR},
      </if>
      <if test="shipperaddress != null" >
        #{shipperaddress,jdbcType=VARCHAR},
      </if>
      <if test="consigneename != null" >
        #{consigneename,jdbcType=VARCHAR},
      </if>
      <if test="consigneeaddress != null" >
        #{consigneeaddress,jdbcType=VARCHAR},
      </if>
      <if test="createdate != null" >
        #{createdate,jdbcType=TIMESTAMP},
      </if>
      <if test="originmanifestmasterautoid != null" >
        #{originmanifestmasterautoid,jdbcType=VARCHAR},
      </if>
      <if test="customsstatus != null" >
        #{customsstatus,jdbcType=VARCHAR},
      </if>
      <if test="status != null" >
        #{status,jdbcType=VARCHAR},
      </if>
      <if test="receiption != null" >
        #{receiption,jdbcType=VARCHAR},
      </if>
      <if test="originatingstationBill != null" >
        #{originatingstationBill,jdbcType=VARCHAR},
      </if>
      <if test="destinationstationBill != null" >
        #{destinationstationBill,jdbcType=VARCHAR},
      </if>
      <if test="shipperCode != null" >
        #{shipperCode,jdbcType=VARCHAR},
      </if>
      <if test="shipperCountrycode != null" >
        #{shipperCountrycode,jdbcType=VARCHAR},
      </if>
      <if test="shipperPhone != null" >
        #{shipperPhone,jdbcType=VARCHAR},
      </if>
      <if test="shipperFax != null" >
        #{shipperFax,jdbcType=VARCHAR},
      </if>
      <if test="consigneeCode != null" >
        #{consigneeCode,jdbcType=VARCHAR},
      </if>
      <if test="consigneeCountrycode != null" >
        #{consigneeCountrycode,jdbcType=VARCHAR},
      </if>
      <if test="consigneeFax != null" >
        #{consigneeFax,jdbcType=VARCHAR},
      </if>
      <if test="specificConsigneename != null" >
        #{specificConsigneename,jdbcType=VARCHAR},
      </if>
      <if test="specificConsigneePhone != null" >
        #{specificConsigneePhone,jdbcType=VARCHAR},
      </if>
      <if test="consigneePhone != null" >
        #{consigneePhone,jdbcType=VARCHAR},
      </if>
    </trim>
  </insert>

  <update id="updateRECEIPTION" parameterType="com.tianbo.analysis.model.Originmanifestsecondary" >
    UPDATE ORIGINMANIFESTSECONDARY
    SET RECEIPTION= #{receiption,jdbcType=VARCHAR}
    WHERE WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR}
    AND WAYBILLNOSECONDARY = #{waybillnosecondary,jdbcType=VARCHAR}
  </update>

  <select id="selectAutoIdByawbAawbH" parameterType="com.tianbo.analysis.model.Originmanifestsecondary" resultType="com.tianbo.analysis.model.Originmanifestsecondary">
    SELECT AUTOID
    FROM ORIGINMANIFESTSECONDARY
    WHERE
    WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR} AND WAYBILLNOSECONDARY = #{waybillnosecondary,jdbcType=VARCHAR}
  </select>
</mapper>