NMMS_FFM_INFOMapper.xml 12.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.sunyo.wlpt.base.dao.NMMS_FFM_INFOMapper" >
  <resultMap id="BaseResultMap" type="com.sunyo.wlpt.base.model.NMMS_FFM_INFO" >
    <id column="AUTOID" property="autoid" jdbcType="VARCHAR" />
    <result column="CREATEDATE" property="createdate" jdbcType="TIMESTAMP" />
    <result column="FLIGHTNO" property="flightno" jdbcType="VARCHAR" />
    <result column="FLIGHTDATE" property="flightdate" jdbcType="TIMESTAMP" />
    <result column="WAYBILLNOMASTER" property="waybillnomaster" jdbcType="VARCHAR" />
    <result column="ORIGINATINGSTATION" property="originatingstation" jdbcType="VARCHAR" />
    <result column="DESTINATIONSTATION" property="destinationstation" jdbcType="VARCHAR" />
    <result column="MANIFESTTOTALPIECE" property="manifesttotalpiece" jdbcType="VARCHAR" />
    <result column="MANIFESTTOTALWEIGHT" property="manifesttotalweight" jdbcType="VARCHAR" />
    <result column="PRODUCTNAME" property="productname" jdbcType="VARCHAR" />
    <result column="SPECIALGOODSCODE" property="specialgoodscode" jdbcType="VARCHAR" />
    <result column="CUSTOMSCODE" property="customscode" jdbcType="VARCHAR" />
    <result column="CUSTOMSSTATUS" property="customsstatus" jdbcType="VARCHAR" />
    <result column="ISBATCH" property="isbatch" jdbcType="VARCHAR" />
    <result column="PALLET" property="pallet" jdbcType="VARCHAR" />
    <result column="PALLETTYPE" property="pallettype" jdbcType="VARCHAR" />
    <result column="PALLETNO" property="palletno" jdbcType="VARCHAR" />
    <result column="REPORTORDER" property="reportorder" jdbcType="VARCHAR" />
    <result column="ISLAST" property="islast" jdbcType="VARCHAR" />
    <result column="ORIGINATINGSTATION_BILL" property="originatingstationBill" jdbcType="VARCHAR" />
    <result column="DESTINATIONSTATION_BILL" property="destinationstationBill" jdbcType="VARCHAR" />
    <result column="TOTALPIECE" property="totalpiece" jdbcType="VARCHAR" />
    <result column="DEALSTATUS" property="dealstatus" jdbcType="VARCHAR" />
  </resultMap>
  <sql id="Base_Column_List" >
    AUTOID, CREATEDATE, FLIGHTNO, FLIGHTDATE, WAYBILLNOMASTER, ORIGINATINGSTATION, DESTINATIONSTATION, 
    MANIFESTTOTALPIECE, MANIFESTTOTALWEIGHT, PRODUCTNAME, SPECIALGOODSCODE, CUSTOMSCODE, 
    CUSTOMSSTATUS, ISBATCH, PALLET, PALLETTYPE, PALLETNO, REPORTORDER, ISLAST, ORIGINATINGSTATION_BILL, 
    DESTINATIONSTATION_BILL, TOTALPIECE, DEALSTATUS
  </sql>
  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
    select 
    <include refid="Base_Column_List" />
    from FFM_INFO
    where AUTOID = #{autoid,jdbcType=VARCHAR}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
    delete from FFM_INFO
    where AUTOID = #{autoid,jdbcType=VARCHAR}
  </delete>
  <insert id="insert" parameterType="com.sunyo.wlpt.base.model.NMMS_FFM_INFO" >
    insert into FFM_INFO (AUTOID, CREATEDATE, FLIGHTNO, 
      FLIGHTDATE, WAYBILLNOMASTER, ORIGINATINGSTATION, 
      DESTINATIONSTATION, MANIFESTTOTALPIECE, 
      MANIFESTTOTALWEIGHT, PRODUCTNAME, SPECIALGOODSCODE, 
      CUSTOMSCODE, CUSTOMSSTATUS, ISBATCH, 
      PALLET, PALLETTYPE, PALLETNO, 
      REPORTORDER, ISLAST, ORIGINATINGSTATION_BILL, 
      DESTINATIONSTATION_BILL, TOTALPIECE, DEALSTATUS
      )
    values (#{autoid,jdbcType=VARCHAR}, #{createdate,jdbcType=TIMESTAMP}, #{flightno,jdbcType=VARCHAR}, 
      #{flightdate,jdbcType=TIMESTAMP}, #{waybillnomaster,jdbcType=VARCHAR}, #{originatingstation,jdbcType=VARCHAR}, 
      #{destinationstation,jdbcType=VARCHAR}, #{manifesttotalpiece,jdbcType=VARCHAR}, 
      #{manifesttotalweight,jdbcType=VARCHAR}, #{productname,jdbcType=VARCHAR}, #{specialgoodscode,jdbcType=VARCHAR}, 
      #{customscode,jdbcType=VARCHAR}, #{customsstatus,jdbcType=VARCHAR}, #{isbatch,jdbcType=VARCHAR}, 
      #{pallet,jdbcType=VARCHAR}, #{pallettype,jdbcType=VARCHAR}, #{palletno,jdbcType=VARCHAR}, 
      #{reportorder,jdbcType=VARCHAR}, #{islast,jdbcType=VARCHAR}, #{originatingstationBill,jdbcType=VARCHAR}, 
      #{destinationstationBill,jdbcType=VARCHAR}, #{totalpiece,jdbcType=VARCHAR}, #{dealstatus,jdbcType=VARCHAR}
      )
  </insert>
  <insert id="insertSelective" parameterType="com.sunyo.wlpt.base.model.NMMS_FFM_INFO" >
    insert into FFM_INFO
    <trim prefix="(" suffix=")" suffixOverrides="," >
      <if test="autoid != null" >
        AUTOID,
      </if>
      <if test="createdate != null" >
        CREATEDATE,
      </if>
      <if test="flightno != null" >
        FLIGHTNO,
      </if>
      <if test="flightdate != null" >
        FLIGHTDATE,
      </if>
      <if test="waybillnomaster != null" >
        WAYBILLNOMASTER,
      </if>
      <if test="originatingstation != null" >
        ORIGINATINGSTATION,
      </if>
      <if test="destinationstation != null" >
        DESTINATIONSTATION,
      </if>
      <if test="manifesttotalpiece != null" >
        MANIFESTTOTALPIECE,
      </if>
      <if test="manifesttotalweight != null" >
        MANIFESTTOTALWEIGHT,
      </if>
      <if test="productname != null" >
        PRODUCTNAME,
      </if>
      <if test="specialgoodscode != null" >
        SPECIALGOODSCODE,
      </if>
      <if test="customscode != null" >
        CUSTOMSCODE,
      </if>
      <if test="customsstatus != null" >
        CUSTOMSSTATUS,
      </if>
      <if test="isbatch != null" >
        ISBATCH,
      </if>
      <if test="pallet != null" >
        PALLET,
      </if>
      <if test="pallettype != null" >
        PALLETTYPE,
      </if>
      <if test="palletno != null" >
        PALLETNO,
      </if>
      <if test="reportorder != null" >
        REPORTORDER,
      </if>
      <if test="islast != null" >
        ISLAST,
      </if>
      <if test="originatingstationBill != null" >
        ORIGINATINGSTATION_BILL,
      </if>
      <if test="destinationstationBill != null" >
        DESTINATIONSTATION_BILL,
      </if>
      <if test="totalpiece != null" >
        TOTALPIECE,
      </if>
      <if test="dealstatus != null" >
        DEALSTATUS,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides="," >
      <if test="autoid != null" >
        #{autoid,jdbcType=VARCHAR},
      </if>
      <if test="createdate != null" >
        #{createdate,jdbcType=TIMESTAMP},
      </if>
      <if test="flightno != null" >
        #{flightno,jdbcType=VARCHAR},
      </if>
      <if test="flightdate != null" >
        #{flightdate,jdbcType=TIMESTAMP},
      </if>
      <if test="waybillnomaster != null" >
        #{waybillnomaster,jdbcType=VARCHAR},
      </if>
      <if test="originatingstation != null" >
        #{originatingstation,jdbcType=VARCHAR},
      </if>
      <if test="destinationstation != null" >
        #{destinationstation,jdbcType=VARCHAR},
      </if>
      <if test="manifesttotalpiece != null" >
        #{manifesttotalpiece,jdbcType=VARCHAR},
      </if>
      <if test="manifesttotalweight != null" >
        #{manifesttotalweight,jdbcType=VARCHAR},
      </if>
      <if test="productname != null" >
        #{productname,jdbcType=VARCHAR},
      </if>
      <if test="specialgoodscode != null" >
        #{specialgoodscode,jdbcType=VARCHAR},
      </if>
      <if test="customscode != null" >
        #{customscode,jdbcType=VARCHAR},
      </if>
      <if test="customsstatus != null" >
        #{customsstatus,jdbcType=VARCHAR},
      </if>
      <if test="isbatch != null" >
        #{isbatch,jdbcType=VARCHAR},
      </if>
      <if test="pallet != null" >
        #{pallet,jdbcType=VARCHAR},
      </if>
      <if test="pallettype != null" >
        #{pallettype,jdbcType=VARCHAR},
      </if>
      <if test="palletno != null" >
        #{palletno,jdbcType=VARCHAR},
      </if>
      <if test="reportorder != null" >
        #{reportorder,jdbcType=VARCHAR},
      </if>
      <if test="islast != null" >
        #{islast,jdbcType=VARCHAR},
      </if>
      <if test="originatingstationBill != null" >
        #{originatingstationBill,jdbcType=VARCHAR},
      </if>
      <if test="destinationstationBill != null" >
        #{destinationstationBill,jdbcType=VARCHAR},
      </if>
      <if test="totalpiece != null" >
        #{totalpiece,jdbcType=VARCHAR},
      </if>
      <if test="dealstatus != null" >
        #{dealstatus,jdbcType=VARCHAR},
      </if>
    </trim>
  </insert>
  <update id="updateByPrimaryKeySelective" parameterType="com.sunyo.wlpt.base.model.NMMS_FFM_INFO" >
    update FFM_INFO
    <set >
      <if test="createdate != null" >
        CREATEDATE = #{createdate,jdbcType=TIMESTAMP},
      </if>
      <if test="flightno != null" >
        FLIGHTNO = #{flightno,jdbcType=VARCHAR},
      </if>
      <if test="flightdate != null" >
        FLIGHTDATE = #{flightdate,jdbcType=TIMESTAMP},
      </if>
      <if test="waybillnomaster != null" >
        WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR},
      </if>
      <if test="originatingstation != null" >
        ORIGINATINGSTATION = #{originatingstation,jdbcType=VARCHAR},
      </if>
      <if test="destinationstation != null" >
        DESTINATIONSTATION = #{destinationstation,jdbcType=VARCHAR},
      </if>
      <if test="manifesttotalpiece != null" >
        MANIFESTTOTALPIECE = #{manifesttotalpiece,jdbcType=VARCHAR},
      </if>
      <if test="manifesttotalweight != null" >
        MANIFESTTOTALWEIGHT = #{manifesttotalweight,jdbcType=VARCHAR},
      </if>
      <if test="productname != null" >
        PRODUCTNAME = #{productname,jdbcType=VARCHAR},
      </if>
      <if test="specialgoodscode != null" >
        SPECIALGOODSCODE = #{specialgoodscode,jdbcType=VARCHAR},
      </if>
      <if test="customscode != null" >
        CUSTOMSCODE = #{customscode,jdbcType=VARCHAR},
      </if>
      <if test="customsstatus != null" >
        CUSTOMSSTATUS = #{customsstatus,jdbcType=VARCHAR},
      </if>
      <if test="isbatch != null" >
        ISBATCH = #{isbatch,jdbcType=VARCHAR},
      </if>
      <if test="pallet != null" >
        PALLET = #{pallet,jdbcType=VARCHAR},
      </if>
      <if test="pallettype != null" >
        PALLETTYPE = #{pallettype,jdbcType=VARCHAR},
      </if>
      <if test="palletno != null" >
        PALLETNO = #{palletno,jdbcType=VARCHAR},
      </if>
      <if test="reportorder != null" >
        REPORTORDER = #{reportorder,jdbcType=VARCHAR},
      </if>
      <if test="islast != null" >
        ISLAST = #{islast,jdbcType=VARCHAR},
      </if>
      <if test="originatingstationBill != null" >
        ORIGINATINGSTATION_BILL = #{originatingstationBill,jdbcType=VARCHAR},
      </if>
      <if test="destinationstationBill != null" >
        DESTINATIONSTATION_BILL = #{destinationstationBill,jdbcType=VARCHAR},
      </if>
      <if test="totalpiece != null" >
        TOTALPIECE = #{totalpiece,jdbcType=VARCHAR},
      </if>
      <if test="dealstatus != null" >
        DEALSTATUS = #{dealstatus,jdbcType=VARCHAR},
      </if>
    </set>
    where AUTOID = #{autoid,jdbcType=VARCHAR}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.sunyo.wlpt.base.model.NMMS_FFM_INFO" >
    update FFM_INFO
    set CREATEDATE = #{createdate,jdbcType=TIMESTAMP},
      FLIGHTNO = #{flightno,jdbcType=VARCHAR},
      FLIGHTDATE = #{flightdate,jdbcType=TIMESTAMP},
      WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR},
      ORIGINATINGSTATION = #{originatingstation,jdbcType=VARCHAR},
      DESTINATIONSTATION = #{destinationstation,jdbcType=VARCHAR},
      MANIFESTTOTALPIECE = #{manifesttotalpiece,jdbcType=VARCHAR},
      MANIFESTTOTALWEIGHT = #{manifesttotalweight,jdbcType=VARCHAR},
      PRODUCTNAME = #{productname,jdbcType=VARCHAR},
      SPECIALGOODSCODE = #{specialgoodscode,jdbcType=VARCHAR},
      CUSTOMSCODE = #{customscode,jdbcType=VARCHAR},
      CUSTOMSSTATUS = #{customsstatus,jdbcType=VARCHAR},
      ISBATCH = #{isbatch,jdbcType=VARCHAR},
      PALLET = #{pallet,jdbcType=VARCHAR},
      PALLETTYPE = #{pallettype,jdbcType=VARCHAR},
      PALLETNO = #{palletno,jdbcType=VARCHAR},
      REPORTORDER = #{reportorder,jdbcType=VARCHAR},
      ISLAST = #{islast,jdbcType=VARCHAR},
      ORIGINATINGSTATION_BILL = #{originatingstationBill,jdbcType=VARCHAR},
      DESTINATIONSTATION_BILL = #{destinationstationBill,jdbcType=VARCHAR},
      TOTALPIECE = #{totalpiece,jdbcType=VARCHAR},
      DEALSTATUS = #{dealstatus,jdbcType=VARCHAR}
    where AUTOID = #{autoid,jdbcType=VARCHAR}
  </update>
</mapper>