NMMS_CUSTOM_MT4201Mapper.xml 10.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.sunyo.wlpt.base.dao.NMMS_CUSTOM_MT4201Mapper" >
  <resultMap id="BaseResultMap" type="com.sunyo.wlpt.base.model.NMMS_CUSTOM_MT4201" >
    <id column="uuid" property="uuid" 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="awba" property="awba" jdbcType="VARCHAR" />
    <result column="awbh" property="awbh" jdbcType="VARCHAR" />
    <result column="lodingPiece" property="lodingpiece" jdbcType="INTEGER" />
    <result column="lodingWeight" property="lodingweight" jdbcType="DECIMAL" />
    <result column="customCode" property="customcode" jdbcType="VARCHAR" />
    <result column="goodsName" property="goodsname" jdbcType="VARCHAR" />
    <result column="acTime" property="actime" jdbcType="TIMESTAMP" />
    <result column="loadingTime" property="loadingtime" jdbcType="TIMESTAMP" />
    <result column="specialGoods" property="specialgoods" jdbcType="VARCHAR" />
    <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, carrier, flightNo, flightDate, originStation, destinationStation, awba, awbh, 
    lodingPiece, lodingWeight, customCode, goodsName, acTime, loadingTime, specialGoods, 
    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_MT4201
    where uuid = #{uuid,jdbcType=VARCHAR}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
    delete from CUSTOM_MT4201
    where uuid = #{uuid,jdbcType=VARCHAR}
  </delete>
  <insert id="insert" parameterType="com.sunyo.wlpt.base.model.NMMS_CUSTOM_MT4201" >
    insert into CUSTOM_MT4201 (uuid, carrier, flightNo, 
      flightDate, originStation, destinationStation, 
      awba, awbh, lodingPiece, 
      lodingWeight, customCode, goodsName, 
      acTime, loadingTime, specialGoods, 
      status, isDelete, ext1, 
      ext2, ext3, ext4, ext5
      )
    values (#{uuid,jdbcType=VARCHAR}, #{carrier,jdbcType=VARCHAR}, #{flightno,jdbcType=VARCHAR}, 
      #{flightdate,jdbcType=DATE}, #{originstation,jdbcType=VARCHAR}, #{destinationstation,jdbcType=VARCHAR}, 
      #{awba,jdbcType=VARCHAR}, #{awbh,jdbcType=VARCHAR}, #{lodingpiece,jdbcType=INTEGER}, 
      #{lodingweight,jdbcType=DECIMAL}, #{customcode,jdbcType=VARCHAR}, #{goodsname,jdbcType=VARCHAR}, 
      #{actime,jdbcType=TIMESTAMP}, #{loadingtime,jdbcType=TIMESTAMP}, #{specialgoods,jdbcType=VARCHAR}, 
      #{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_MT4201" >
    insert into CUSTOM_MT4201
    <trim prefix="(" suffix=")" suffixOverrides="," >
      <if test="uuid != null" >
        uuid,
      </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="awba != null" >
        awba,
      </if>
      <if test="awbh != null" >
        awbh,
      </if>
      <if test="lodingpiece != null" >
        lodingPiece,
      </if>
      <if test="lodingweight != null" >
        lodingWeight,
      </if>
      <if test="customcode != null" >
        customCode,
      </if>
      <if test="goodsname != null" >
        goodsName,
      </if>
      <if test="actime != null" >
        acTime,
      </if>
      <if test="loadingtime != null" >
        loadingTime,
      </if>
      <if test="specialgoods != null" >
        specialGoods,
      </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="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="awba != null" >
        #{awba,jdbcType=VARCHAR},
      </if>
      <if test="awbh != null" >
        #{awbh,jdbcType=VARCHAR},
      </if>
      <if test="lodingpiece != null" >
        #{lodingpiece,jdbcType=INTEGER},
      </if>
      <if test="lodingweight != null" >
        #{lodingweight,jdbcType=DECIMAL},
      </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="loadingtime != null" >
        #{loadingtime,jdbcType=TIMESTAMP},
      </if>
      <if test="specialgoods != null" >
        #{specialgoods,jdbcType=VARCHAR},
      </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_MT4201" >
    update CUSTOM_MT4201
    <set >
      <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="awba != null" >
        awba = #{awba,jdbcType=VARCHAR},
      </if>
      <if test="awbh != null" >
        awbh = #{awbh,jdbcType=VARCHAR},
      </if>
      <if test="lodingpiece != null" >
        lodingPiece = #{lodingpiece,jdbcType=INTEGER},
      </if>
      <if test="lodingweight != null" >
        lodingWeight = #{lodingweight,jdbcType=DECIMAL},
      </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="loadingtime != null" >
        loadingTime = #{loadingtime,jdbcType=TIMESTAMP},
      </if>
      <if test="specialgoods != null" >
        specialGoods = #{specialgoods,jdbcType=VARCHAR},
      </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_MT4201" >
    update CUSTOM_MT4201
    set carrier = #{carrier,jdbcType=VARCHAR},
      flightNo = #{flightno,jdbcType=VARCHAR},
      flightDate = #{flightdate,jdbcType=DATE},
      originStation = #{originstation,jdbcType=VARCHAR},
      destinationStation = #{destinationstation,jdbcType=VARCHAR},
      awba = #{awba,jdbcType=VARCHAR},
      awbh = #{awbh,jdbcType=VARCHAR},
      lodingPiece = #{lodingpiece,jdbcType=INTEGER},
      lodingWeight = #{lodingweight,jdbcType=DECIMAL},
      customCode = #{customcode,jdbcType=VARCHAR},
      goodsName = #{goodsname,jdbcType=VARCHAR},
      acTime = #{actime,jdbcType=TIMESTAMP},
      loadingTime = #{loadingtime,jdbcType=TIMESTAMP},
      specialGoods = #{specialgoods,jdbcType=VARCHAR},
      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>