NMMS_CUSTOM_MT1201Mapper.xml 9.9 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_MT1201Mapper" >
  <resultMap id="BaseResultMap" type="com.sunyo.wlpt.base.model.NMMS_CUSTOM_MT1201" >
    <id column="uuid" property="uuid" jdbcType="VARCHAR" />
    <result column="awba" property="awba" jdbcType="VARCHAR" />
    <result column="awbh" property="awbh" jdbcType="VARCHAR" />
    <result column="customCode" property="customcode" jdbcType="VARCHAR" />
    <result column="goodsName" property="goodsname" jdbcType="VARCHAR" />
    <result column="acTime" property="actime" jdbcType="TIMESTAMP" />
    <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="splitCode" property="splitcode" jdbcType="VARCHAR" />
    <result column="status" property="status" jdbcType="VARCHAR" />
    <result column="isDelete" property="isdelete" jdbcType="BIT" />
    <result column="uldType" property="uldtype" jdbcType="VARCHAR" />
    <result column="uldNo" property="uldno" jdbcType="VARCHAR" />
    <result column="planeNo" property="planeno" jdbcType="VARCHAR" />
    <result column="opeuserid" property="opeuserid" jdbcType="VARCHAR" />
    <result column="ext5" property="ext5" jdbcType="VARCHAR" />
  </resultMap>
  <sql id="Base_Column_List" >
    uuid, awba, awbh, customCode, goodsName, acTime, carrier, flightNo, flightDate, originStation, 
    destinationStation, piece, weight, splitCode, status, isDelete, uldType, uldNo, planeNo, 
    opeuserid, ext5
  </sql>
  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
    select 
    <include refid="Base_Column_List" />
    from CUSTOM_MT1201
    where uuid = #{uuid,jdbcType=VARCHAR}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
    delete from CUSTOM_MT1201
    where uuid = #{uuid,jdbcType=VARCHAR}
  </delete>
  <insert id="insert" parameterType="com.sunyo.wlpt.base.model.NMMS_CUSTOM_MT1201" >
    insert into CUSTOM_MT1201 (uuid, awba, awbh, 
      customCode, goodsName, acTime, 
      carrier, flightNo, flightDate, 
      originStation, destinationStation, piece, 
      weight, splitCode, status, 
      isDelete, uldType, uldNo, 
      planeNo, opeuserid, ext5
      )
    values (#{uuid,jdbcType=VARCHAR}, #{awba,jdbcType=VARCHAR}, #{awbh,jdbcType=VARCHAR}, 
      #{customcode,jdbcType=VARCHAR}, #{goodsname,jdbcType=VARCHAR}, #{actime,jdbcType=TIMESTAMP}, 
      #{carrier,jdbcType=VARCHAR}, #{flightno,jdbcType=VARCHAR}, #{flightdate,jdbcType=DATE}, 
      #{originstation,jdbcType=VARCHAR}, #{destinationstation,jdbcType=VARCHAR}, #{piece,jdbcType=INTEGER}, 
      #{weight,jdbcType=DECIMAL}, #{splitcode,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR}, 
      #{isdelete,jdbcType=BIT}, #{uldtype,jdbcType=VARCHAR}, #{uldno,jdbcType=VARCHAR}, 
      #{planeno,jdbcType=VARCHAR}, #{opeuserid,jdbcType=VARCHAR}, #{ext5,jdbcType=VARCHAR}
      )
  </insert>
  <insert id="insertSelective" parameterType="com.sunyo.wlpt.base.model.NMMS_CUSTOM_MT1201" >
    insert into CUSTOM_MT1201
    <trim prefix="(" suffix=")" suffixOverrides="," >
      <if test="uuid != null" >
        uuid,
      </if>
      <if test="awba != null" >
        awba,
      </if>
      <if test="awbh != null" >
        awbh,
      </if>
      <if test="customcode != null" >
        customCode,
      </if>
      <if test="goodsname != null" >
        goodsName,
      </if>
      <if test="actime != null" >
        acTime,
      </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="splitcode != null" >
        splitCode,
      </if>
      <if test="status != null" >
        status,
      </if>
      <if test="isdelete != null" >
        isDelete,
      </if>
      <if test="uldtype != null" >
        uldType,
      </if>
      <if test="uldno != null" >
        uldNo,
      </if>
      <if test="planeno != null" >
        planeNo,
      </if>
      <if test="opeuserid != null" >
        opeuserid,
      </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="customcode != null" >
        #{customcode,jdbcType=VARCHAR},
      </if>
      <if test="goodsname != null" >
        #{goodsname,jdbcType=VARCHAR},
      </if>
      <if test="actime != null" >
        #{actime,jdbcType=TIMESTAMP},
      </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="splitcode != null" >
        #{splitcode,jdbcType=VARCHAR},
      </if>
      <if test="status != null" >
        #{status,jdbcType=VARCHAR},
      </if>
      <if test="isdelete != null" >
        #{isdelete,jdbcType=BIT},
      </if>
      <if test="uldtype != null" >
        #{uldtype,jdbcType=VARCHAR},
      </if>
      <if test="uldno != null" >
        #{uldno,jdbcType=VARCHAR},
      </if>
      <if test="planeno != null" >
        #{planeno,jdbcType=VARCHAR},
      </if>
      <if test="opeuserid != null" >
        #{opeuserid,jdbcType=VARCHAR},
      </if>
      <if test="ext5 != null" >
        #{ext5,jdbcType=VARCHAR},
      </if>
    </trim>
  </insert>
  <update id="updateByPrimaryKeySelective" parameterType="com.sunyo.wlpt.base.model.NMMS_CUSTOM_MT1201" >
    update CUSTOM_MT1201
    <set >
      <if test="awba != null" >
        awba = #{awba,jdbcType=VARCHAR},
      </if>
      <if test="awbh != null" >
        awbh = #{awbh,jdbcType=VARCHAR},
      </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="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="splitcode != null" >
        splitCode = #{splitcode,jdbcType=VARCHAR},
      </if>
      <if test="status != null" >
        status = #{status,jdbcType=VARCHAR},
      </if>
      <if test="isdelete != null" >
        isDelete = #{isdelete,jdbcType=BIT},
      </if>
      <if test="uldtype != null" >
        uldType = #{uldtype,jdbcType=VARCHAR},
      </if>
      <if test="uldno != null" >
        uldNo = #{uldno,jdbcType=VARCHAR},
      </if>
      <if test="planeno != null" >
        planeNo = #{planeno,jdbcType=VARCHAR},
      </if>
      <if test="opeuserid != null" >
        opeuserid = #{opeuserid,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_MT1201" >
    update CUSTOM_MT1201
    set awba = #{awba,jdbcType=VARCHAR},
      awbh = #{awbh,jdbcType=VARCHAR},
      customCode = #{customcode,jdbcType=VARCHAR},
      goodsName = #{goodsname,jdbcType=VARCHAR},
      acTime = #{actime,jdbcType=TIMESTAMP},
      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},
      splitCode = #{splitcode,jdbcType=VARCHAR},
      status = #{status,jdbcType=VARCHAR},
      isDelete = #{isdelete,jdbcType=BIT},
      uldType = #{uldtype,jdbcType=VARCHAR},
      uldNo = #{uldno,jdbcType=VARCHAR},
      planeNo = #{planeno,jdbcType=VARCHAR},
      opeuserid = #{opeuserid,jdbcType=VARCHAR},
      ext5 = #{ext5,jdbcType=VARCHAR}
    where uuid = #{uuid,jdbcType=VARCHAR}
  </update>
</mapper>