FWBinfoDao.xml 9.5 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.FWBinfoDao" >
  <resultMap id="BaseResultMap" type="com.tianbo.analysis.model.FWBinfo" >
    <result column="AUTOID" property="autoid" jdbcType="VARCHAR" />
    <result column="WAYBILLNOMASTER" property="waybillnomaster" jdbcType="VARCHAR" />
    <result column="TOTALWEIGHT" property="totalweight" jdbcType="VARCHAR" />
    <result column="TOTALPIECE" property="totalpiece" jdbcType="VARCHAR" />
    <result column="PRODUCTNAME" property="productname" jdbcType="VARCHAR" />
    <result column="CARRIER1" property="carrier1" jdbcType="VARCHAR" />
    <result column="ARRIVALSTATION1" property="arrivalstation1" jdbcType="VARCHAR" />
    <result column="CARRIER2" property="carrier2" jdbcType="VARCHAR" />
    <result column="ARRIVALSTATION2" property="arrivalstation2" jdbcType="VARCHAR" />
    <result column="CARRIER3" property="carrier3" jdbcType="VARCHAR" />
    <result column="ARRIVALSTATION3" property="arrivalstation3" jdbcType="VARCHAR" />
    <result column="PAYMODE" property="paymode" jdbcType="VARCHAR" />
    <result column="SPECIALGOODSCODE" property="specialgoodscode" 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="ISTRANSFER" property="istransfer" 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"  keyColumn="AUTOID" keyProperty="autoid" parameterType="com.tianbo.analysis.model.FWBinfo" useGeneratedKeys="true">
    insert into CGONMS.FWB_INFO (AUTOID, WAYBILLNOMASTER, TOTALWEIGHT,
      TOTALPIECE, PRODUCTNAME, CARRIER1,
      ARRIVALSTATION1, CARRIER2, ARRIVALSTATION2,
      CARRIER3, ARRIVALSTATION3, PAYMODE,
      SPECIALGOODSCODE, SHIPPERNAME, SHIPPERADDRESS,
      CONSIGNEENAME, CONSIGNEEADDRESS, CREATEDATE,
      ISTRANSFER, 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}, #{totalweight,jdbcType=VARCHAR},
      #{totalpiece,jdbcType=VARCHAR}, #{productname,jdbcType=VARCHAR}, #{carrier1,jdbcType=VARCHAR},
      #{arrivalstation1,jdbcType=VARCHAR}, #{carrier2,jdbcType=VARCHAR}, #{arrivalstation2,jdbcType=VARCHAR},
      #{carrier3,jdbcType=VARCHAR}, #{arrivalstation3,jdbcType=VARCHAR}, #{paymode,jdbcType=VARCHAR},
      #{specialgoodscode,jdbcType=VARCHAR}, #{shippername,jdbcType=VARCHAR}, #{shipperaddress,jdbcType=VARCHAR},
      #{consigneename,jdbcType=VARCHAR}, #{consigneeaddress,jdbcType=VARCHAR}, #{createdate,jdbcType=TIMESTAMP},
      #{istransfer,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" keyColumn="AUTOID" keyProperty="autoid" parameterType="com.tianbo.analysis.model.FWBinfo" useGeneratedKeys="true">
    insert into CGONMS.FWB_INFO
    <trim prefix="(" suffix=")" suffixOverrides="," >
      <if test="autoid != null" >
        AUTOID,
      </if>
      <if test="waybillnomaster != null" >
        WAYBILLNOMASTER,
      </if>
      <if test="totalweight != null" >
        TOTALWEIGHT,
      </if>
      <if test="totalpiece != null" >
        TOTALPIECE,
      </if>
      <if test="productname != null" >
        PRODUCTNAME,
      </if>
      <if test="carrier1 != null" >
        CARRIER1,
      </if>
      <if test="arrivalstation1 != null" >
        ARRIVALSTATION1,
      </if>
      <if test="carrier2 != null" >
        CARRIER2,
      </if>
      <if test="arrivalstation2 != null" >
        ARRIVALSTATION2,
      </if>
      <if test="carrier3 != null" >
        CARRIER3,
      </if>
      <if test="arrivalstation3 != null" >
        ARRIVALSTATION3,
      </if>
      <if test="paymode != null" >
        PAYMODE,
      </if>
      <if test="specialgoodscode != null" >
        SPECIALGOODSCODE,
      </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="istransfer != null" >
        ISTRANSFER,
      </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="totalweight != null" >
        #{totalweight,jdbcType=VARCHAR},
      </if>
      <if test="totalpiece != null" >
        #{totalpiece,jdbcType=VARCHAR},
      </if>
      <if test="productname != null" >
        #{productname,jdbcType=VARCHAR},
      </if>
      <if test="carrier1 != null" >
        #{carrier1,jdbcType=VARCHAR},
      </if>
      <if test="arrivalstation1 != null" >
        #{arrivalstation1,jdbcType=VARCHAR},
      </if>
      <if test="carrier2 != null" >
        #{carrier2,jdbcType=VARCHAR},
      </if>
      <if test="arrivalstation2 != null" >
        #{arrivalstation2,jdbcType=VARCHAR},
      </if>
      <if test="carrier3 != null" >
        #{carrier3,jdbcType=VARCHAR},
      </if>
      <if test="arrivalstation3 != null" >
        #{arrivalstation3,jdbcType=VARCHAR},
      </if>
      <if test="paymode != null" >
        #{paymode,jdbcType=VARCHAR},
      </if>
      <if test="specialgoodscode != null" >
        #{specialgoodscode,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="istransfer != null" >
        #{istransfer,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>
</mapper>