NMMS_CUSTOM_MT3201Mapper.xml 9.8 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_CUSTOM_MT3201Mapper" >
  <resultMap id="BaseResultMap" type="com.sunyo.wlpt.base.model.NMMS_CUSTOM_MT3201" >
    <id column="uuid" property="uuid" jdbcType="VARCHAR" />
    <result column="awba" property="awba" jdbcType="VARCHAR" />
    <result column="awbh" property="awbh" jdbcType="VARCHAR" />
    <result column="carrier" property="carrier" jdbcType="VARCHAR" />
    <result column="flightNo" property="flightno" jdbcType="VARCHAR" />
    <result column="flightDate" property="flightdate" jdbcType="DATE" />
    <result column="originStation" property="originstation" jdbcType="VARCHAR" />
    <result column="destinationStation" property="destinationstation" jdbcType="VARCHAR" />
    <result column="piece" property="piece" jdbcType="INTEGER" />
    <result column="weight" property="weight" jdbcType="DECIMAL" />
    <result column="arriveTime" property="arrivetime" jdbcType="TIMESTAMP" />
    <result column="customCode" property="customcode" jdbcType="VARCHAR" />
    <result column="goodsName" property="goodsname" jdbcType="VARCHAR" />
    <result column="acTime" property="actime" jdbcType="TIMESTAMP" />
    <result column="status" property="status" jdbcType="VARCHAR" />
    <result column="isDelete" property="isdelete" jdbcType="BIT" />
    <result column="ext1" property="ext1" jdbcType="VARCHAR" />
    <result column="ext2" property="ext2" jdbcType="VARCHAR" />
    <result column="ext3" property="ext3" jdbcType="VARCHAR" />
    <result column="ext4" property="ext4" jdbcType="VARCHAR" />
    <result column="ext5" property="ext5" jdbcType="VARCHAR" />
  </resultMap>
  <sql id="Base_Column_List" >
    uuid, awba, awbh, carrier, flightNo, flightDate, originStation, destinationStation, 
    piece, weight, arriveTime, customCode, goodsName, acTime, status, isDelete, ext1, 
    ext2, ext3, ext4, ext5
  </sql>
  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
    select 
    <include refid="Base_Column_List" />
    from CUSTOM_MT3201
    where uuid = #{uuid,jdbcType=VARCHAR}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
    delete from CUSTOM_MT3201
    where uuid = #{uuid,jdbcType=VARCHAR}
  </delete>
  <insert id="insert" parameterType="com.sunyo.wlpt.base.model.NMMS_CUSTOM_MT3201" >
    insert into CUSTOM_MT3201 (uuid, awba, awbh, 
      carrier, flightNo, flightDate, 
      originStation, destinationStation, piece, 
      weight, arriveTime, customCode, 
      goodsName, acTime, status, 
      isDelete, ext1, ext2, ext3, 
      ext4, ext5)
    values (#{uuid,jdbcType=VARCHAR}, #{awba,jdbcType=VARCHAR}, #{awbh,jdbcType=VARCHAR}, 
      #{carrier,jdbcType=VARCHAR}, #{flightno,jdbcType=VARCHAR}, #{flightdate,jdbcType=DATE}, 
      #{originstation,jdbcType=VARCHAR}, #{destinationstation,jdbcType=VARCHAR}, #{piece,jdbcType=INTEGER}, 
      #{weight,jdbcType=DECIMAL}, #{arrivetime,jdbcType=TIMESTAMP}, #{customcode,jdbcType=VARCHAR}, 
      #{goodsname,jdbcType=VARCHAR}, #{actime,jdbcType=TIMESTAMP}, #{status,jdbcType=VARCHAR}, 
      #{isdelete,jdbcType=BIT}, #{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR}, 
      #{ext4,jdbcType=VARCHAR}, #{ext5,jdbcType=VARCHAR})
  </insert>
  <insert id="insertSelective" parameterType="com.sunyo.wlpt.base.model.NMMS_CUSTOM_MT3201" >
    insert into CUSTOM_MT3201
    <trim prefix="(" suffix=")" suffixOverrides="," >
      <if test="uuid != null" >
        uuid,
      </if>
      <if test="awba != null" >
        awba,
      </if>
      <if test="awbh != null" >
        awbh,
      </if>
      <if test="carrier != null" >
        carrier,
      </if>
      <if test="flightno != null" >
        flightNo,
      </if>
      <if test="flightdate != null" >
        flightDate,
      </if>
      <if test="originstation != null" >
        originStation,
      </if>
      <if test="destinationstation != null" >
        destinationStation,
      </if>
      <if test="piece != null" >
        piece,
      </if>
      <if test="weight != null" >
        weight,
      </if>
      <if test="arrivetime != null" >
        arriveTime,
      </if>
      <if test="customcode != null" >
        customCode,
      </if>
      <if test="goodsname != null" >
        goodsName,
      </if>
      <if test="actime != null" >
        acTime,
      </if>
      <if test="status != null" >
        status,
      </if>
      <if test="isdelete != null" >
        isDelete,
      </if>
      <if test="ext1 != null" >
        ext1,
      </if>
      <if test="ext2 != null" >
        ext2,
      </if>
      <if test="ext3 != null" >
        ext3,
      </if>
      <if test="ext4 != null" >
        ext4,
      </if>
      <if test="ext5 != null" >
        ext5,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides="," >
      <if test="uuid != null" >
        #{uuid,jdbcType=VARCHAR},
      </if>
      <if test="awba != null" >
        #{awba,jdbcType=VARCHAR},
      </if>
      <if test="awbh != null" >
        #{awbh,jdbcType=VARCHAR},
      </if>
      <if test="carrier != null" >
        #{carrier,jdbcType=VARCHAR},
      </if>
      <if test="flightno != null" >
        #{flightno,jdbcType=VARCHAR},
      </if>
      <if test="flightdate != null" >
        #{flightdate,jdbcType=DATE},
      </if>
      <if test="originstation != null" >
        #{originstation,jdbcType=VARCHAR},
      </if>
      <if test="destinationstation != null" >
        #{destinationstation,jdbcType=VARCHAR},
      </if>
      <if test="piece != null" >
        #{piece,jdbcType=INTEGER},
      </if>
      <if test="weight != null" >
        #{weight,jdbcType=DECIMAL},
      </if>
      <if test="arrivetime != null" >
        #{arrivetime,jdbcType=TIMESTAMP},
      </if>
      <if test="customcode != null" >
        #{customcode,jdbcType=VARCHAR},
      </if>
      <if test="goodsname != null" >
        #{goodsname,jdbcType=VARCHAR},
      </if>
      <if test="actime != null" >
        #{actime,jdbcType=TIMESTAMP},
      </if>
      <if test="status != null" >
        #{status,jdbcType=VARCHAR},
      </if>
      <if test="isdelete != null" >
        #{isdelete,jdbcType=BIT},
      </if>
      <if test="ext1 != null" >
        #{ext1,jdbcType=VARCHAR},
      </if>
      <if test="ext2 != null" >
        #{ext2,jdbcType=VARCHAR},
      </if>
      <if test="ext3 != null" >
        #{ext3,jdbcType=VARCHAR},
      </if>
      <if test="ext4 != null" >
        #{ext4,jdbcType=VARCHAR},
      </if>
      <if test="ext5 != null" >
        #{ext5,jdbcType=VARCHAR},
      </if>
    </trim>
  </insert>
  <update id="updateByPrimaryKeySelective" parameterType="com.sunyo.wlpt.base.model.NMMS_CUSTOM_MT3201" >
    update CUSTOM_MT3201
    <set >
      <if test="awba != null" >
        awba = #{awba,jdbcType=VARCHAR},
      </if>
      <if test="awbh != null" >
        awbh = #{awbh,jdbcType=VARCHAR},
      </if>
      <if test="carrier != null" >
        carrier = #{carrier,jdbcType=VARCHAR},
      </if>
      <if test="flightno != null" >
        flightNo = #{flightno,jdbcType=VARCHAR},
      </if>
      <if test="flightdate != null" >
        flightDate = #{flightdate,jdbcType=DATE},
      </if>
      <if test="originstation != null" >
        originStation = #{originstation,jdbcType=VARCHAR},
      </if>
      <if test="destinationstation != null" >
        destinationStation = #{destinationstation,jdbcType=VARCHAR},
      </if>
      <if test="piece != null" >
        piece = #{piece,jdbcType=INTEGER},
      </if>
      <if test="weight != null" >
        weight = #{weight,jdbcType=DECIMAL},
      </if>
      <if test="arrivetime != null" >
        arriveTime = #{arrivetime,jdbcType=TIMESTAMP},
      </if>
      <if test="customcode != null" >
        customCode = #{customcode,jdbcType=VARCHAR},
      </if>
      <if test="goodsname != null" >
        goodsName = #{goodsname,jdbcType=VARCHAR},
      </if>
      <if test="actime != null" >
        acTime = #{actime,jdbcType=TIMESTAMP},
      </if>
      <if test="status != null" >
        status = #{status,jdbcType=VARCHAR},
      </if>
      <if test="isdelete != null" >
        isDelete = #{isdelete,jdbcType=BIT},
      </if>
      <if test="ext1 != null" >
        ext1 = #{ext1,jdbcType=VARCHAR},
      </if>
      <if test="ext2 != null" >
        ext2 = #{ext2,jdbcType=VARCHAR},
      </if>
      <if test="ext3 != null" >
        ext3 = #{ext3,jdbcType=VARCHAR},
      </if>
      <if test="ext4 != null" >
        ext4 = #{ext4,jdbcType=VARCHAR},
      </if>
      <if test="ext5 != null" >
        ext5 = #{ext5,jdbcType=VARCHAR},
      </if>
    </set>
    where uuid = #{uuid,jdbcType=VARCHAR}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.sunyo.wlpt.base.model.NMMS_CUSTOM_MT3201" >
    update CUSTOM_MT3201
    set awba = #{awba,jdbcType=VARCHAR},
      awbh = #{awbh,jdbcType=VARCHAR},
      carrier = #{carrier,jdbcType=VARCHAR},
      flightNo = #{flightno,jdbcType=VARCHAR},
      flightDate = #{flightdate,jdbcType=DATE},
      originStation = #{originstation,jdbcType=VARCHAR},
      destinationStation = #{destinationstation,jdbcType=VARCHAR},
      piece = #{piece,jdbcType=INTEGER},
      weight = #{weight,jdbcType=DECIMAL},
      arriveTime = #{arrivetime,jdbcType=TIMESTAMP},
      customCode = #{customcode,jdbcType=VARCHAR},
      goodsName = #{goodsname,jdbcType=VARCHAR},
      acTime = #{actime,jdbcType=TIMESTAMP},
      status = #{status,jdbcType=VARCHAR},
      isDelete = #{isdelete,jdbcType=BIT},
      ext1 = #{ext1,jdbcType=VARCHAR},
      ext2 = #{ext2,jdbcType=VARCHAR},
      ext3 = #{ext3,jdbcType=VARCHAR},
      ext4 = #{ext4,jdbcType=VARCHAR},
      ext5 = #{ext5,jdbcType=VARCHAR}
    where uuid = #{uuid,jdbcType=VARCHAR}
  </update>
</mapper>