NMMS_CUSTOM_MT8205Mapper.xml 8.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_MT8205Mapper" >
  <resultMap id="BaseResultMap" type="com.sunyo.wlpt.base.model.NMMS_CUSTOM_MT8205" >
    <id column="uuid" property="uuid" jdbcType="VARCHAR" />
    <result column="uuid1201" property="uuid1201" jdbcType="VARCHAR" />
    <result column="uuid2201" property="uuid2201" jdbcType="VARCHAR" />
    <result column="transPiece" property="transpiece" jdbcType="INTEGER" />
    <result column="transWeight" property="transweight" jdbcType="DECIMAL" />
    <result column="goodsName" property="goodsname" jdbcType="VARCHAR" />
    <result column="goodsPackage" property="goodspackage" jdbcType="VARCHAR" />
    <result column="status" property="status" jdbcType="VARCHAR" />
    <result column="awbOriginStation" property="awboriginstation" jdbcType="VARCHAR" />
    <result column="awbDesStation" property="awbdesstation" jdbcType="VARCHAR" />
    <result column="customCode" property="customcode" 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, uuid1201, uuid2201, transPiece, transWeight, goodsName, goodsPackage, status, 
    awbOriginStation, awbDesStation, customCode, isDelete, ext1, ext2, ext3, ext4, ext5
  </sql>
  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
    select 
    <include refid="Base_Column_List" />
    from CUSTOM_MT8205
    where uuid = #{uuid,jdbcType=VARCHAR}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
    delete from CUSTOM_MT8205
    where uuid = #{uuid,jdbcType=VARCHAR}
  </delete>
  <insert id="insert" parameterType="com.sunyo.wlpt.base.model.NMMS_CUSTOM_MT8205" >
    insert into CUSTOM_MT8205 (uuid, uuid1201, uuid2201, 
      transPiece, transWeight, goodsName, 
      goodsPackage, status, awbOriginStation, 
      awbDesStation, customCode, isDelete, 
      ext1, ext2, ext3, ext4, 
      ext5)
    values (#{uuid,jdbcType=VARCHAR}, #{uuid1201,jdbcType=VARCHAR}, #{uuid2201,jdbcType=VARCHAR}, 
      #{transpiece,jdbcType=INTEGER}, #{transweight,jdbcType=DECIMAL}, #{goodsname,jdbcType=VARCHAR}, 
      #{goodspackage,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR}, #{awboriginstation,jdbcType=VARCHAR}, 
      #{awbdesstation,jdbcType=VARCHAR}, #{customcode,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_MT8205" >
    insert into CUSTOM_MT8205
    <trim prefix="(" suffix=")" suffixOverrides="," >
      <if test="uuid != null" >
        uuid,
      </if>
      <if test="uuid1201 != null" >
        uuid1201,
      </if>
      <if test="uuid2201 != null" >
        uuid2201,
      </if>
      <if test="transpiece != null" >
        transPiece,
      </if>
      <if test="transweight != null" >
        transWeight,
      </if>
      <if test="goodsname != null" >
        goodsName,
      </if>
      <if test="goodspackage != null" >
        goodsPackage,
      </if>
      <if test="status != null" >
        status,
      </if>
      <if test="awboriginstation != null" >
        awbOriginStation,
      </if>
      <if test="awbdesstation != null" >
        awbDesStation,
      </if>
      <if test="customcode != null" >
        customCode,
      </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="uuid1201 != null" >
        #{uuid1201,jdbcType=VARCHAR},
      </if>
      <if test="uuid2201 != null" >
        #{uuid2201,jdbcType=VARCHAR},
      </if>
      <if test="transpiece != null" >
        #{transpiece,jdbcType=INTEGER},
      </if>
      <if test="transweight != null" >
        #{transweight,jdbcType=DECIMAL},
      </if>
      <if test="goodsname != null" >
        #{goodsname,jdbcType=VARCHAR},
      </if>
      <if test="goodspackage != null" >
        #{goodspackage,jdbcType=VARCHAR},
      </if>
      <if test="status != null" >
        #{status,jdbcType=VARCHAR},
      </if>
      <if test="awboriginstation != null" >
        #{awboriginstation,jdbcType=VARCHAR},
      </if>
      <if test="awbdesstation != null" >
        #{awbdesstation,jdbcType=VARCHAR},
      </if>
      <if test="customcode != null" >
        #{customcode,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_MT8205" >
    update CUSTOM_MT8205
    <set >
      <if test="uuid1201 != null" >
        uuid1201 = #{uuid1201,jdbcType=VARCHAR},
      </if>
      <if test="uuid2201 != null" >
        uuid2201 = #{uuid2201,jdbcType=VARCHAR},
      </if>
      <if test="transpiece != null" >
        transPiece = #{transpiece,jdbcType=INTEGER},
      </if>
      <if test="transweight != null" >
        transWeight = #{transweight,jdbcType=DECIMAL},
      </if>
      <if test="goodsname != null" >
        goodsName = #{goodsname,jdbcType=VARCHAR},
      </if>
      <if test="goodspackage != null" >
        goodsPackage = #{goodspackage,jdbcType=VARCHAR},
      </if>
      <if test="status != null" >
        status = #{status,jdbcType=VARCHAR},
      </if>
      <if test="awboriginstation != null" >
        awbOriginStation = #{awboriginstation,jdbcType=VARCHAR},
      </if>
      <if test="awbdesstation != null" >
        awbDesStation = #{awbdesstation,jdbcType=VARCHAR},
      </if>
      <if test="customcode != null" >
        customCode = #{customcode,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_MT8205" >
    update CUSTOM_MT8205
    set uuid1201 = #{uuid1201,jdbcType=VARCHAR},
      uuid2201 = #{uuid2201,jdbcType=VARCHAR},
      transPiece = #{transpiece,jdbcType=INTEGER},
      transWeight = #{transweight,jdbcType=DECIMAL},
      goodsName = #{goodsname,jdbcType=VARCHAR},
      goodsPackage = #{goodspackage,jdbcType=VARCHAR},
      status = #{status,jdbcType=VARCHAR},
      awbOriginStation = #{awboriginstation,jdbcType=VARCHAR},
      awbDesStation = #{awbdesstation,jdbcType=VARCHAR},
      customCode = #{customcode,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>