|
|
<?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_TRANSMapper" >
|
|
|
<resultMap id="BaseResultMap" type="com.sunyo.wlpt.base.model.NMMS_CUSTOM_TRANS" >
|
|
|
<id column="uuid" property="uuid" jdbcType="VARCHAR" />
|
|
|
<result column="uuid1201" property="uuid1201" jdbcType="VARCHAR" />
|
|
|
<result column="awba" property="awba" 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="turnPiece" property="turnpiece" jdbcType="VARCHAR" />
|
|
|
<result column="turnWeight" property="turnweight" jdbcType="DECIMAL" />
|
|
|
<result column="customCode" property="customcode" jdbcType="VARCHAR" />
|
|
|
<result column="turnUnLoading" property="turnunloading" jdbcType="VARCHAR" />
|
|
|
<result column="pNo" property="pno" jdbcType="VARCHAR" />
|
|
|
<result column="status" property="status" jdbcType="VARCHAR" />
|
|
|
<result column="turnType" property="turntype" jdbcType="VARCHAR" />
|
|
|
<result column="goodsName" property="goodsname" 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, awba, carrier, flightNo, flightDate, turnPiece, turnWeight, customCode,
|
|
|
turnUnLoading, pNo, status, turnType, goodsName, isDelete, ext1, ext2, ext3, ext4,
|
|
|
ext5
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
|
from CUSTOM_TRANS
|
|
|
where uuid = #{uuid,jdbcType=VARCHAR}
|
|
|
</select>
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
|
|
|
delete from CUSTOM_TRANS
|
|
|
where uuid = #{uuid,jdbcType=VARCHAR}
|
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.sunyo.wlpt.base.model.NMMS_CUSTOM_TRANS" >
|
|
|
insert into CUSTOM_TRANS (uuid, uuid1201, awba,
|
|
|
carrier, flightNo, flightDate,
|
|
|
turnPiece, turnWeight, customCode,
|
|
|
turnUnLoading, pNo, status,
|
|
|
turnType, goodsName, isDelete,
|
|
|
ext1, ext2, ext3, ext4,
|
|
|
ext5)
|
|
|
values (#{uuid,jdbcType=VARCHAR}, #{uuid1201,jdbcType=VARCHAR}, #{awba,jdbcType=VARCHAR},
|
|
|
#{carrier,jdbcType=VARCHAR}, #{flightno,jdbcType=VARCHAR}, #{flightdate,jdbcType=DATE},
|
|
|
#{turnpiece,jdbcType=VARCHAR}, #{turnweight,jdbcType=DECIMAL}, #{customcode,jdbcType=VARCHAR},
|
|
|
#{turnunloading,jdbcType=VARCHAR}, #{pno,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR},
|
|
|
#{turntype,jdbcType=VARCHAR}, #{goodsname,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_TRANS" >
|
|
|
insert into CUSTOM_TRANS
|
|
|
<trim prefix="(" suffix=")" suffixOverrides="," >
|
|
|
<if test="uuid != null" >
|
|
|
uuid,
|
|
|
</if>
|
|
|
<if test="uuid1201 != null" >
|
|
|
uuid1201,
|
|
|
</if>
|
|
|
<if test="awba != null" >
|
|
|
awba,
|
|
|
</if>
|
|
|
<if test="carrier != null" >
|
|
|
carrier,
|
|
|
</if>
|
|
|
<if test="flightno != null" >
|
|
|
flightNo,
|
|
|
</if>
|
|
|
<if test="flightdate != null" >
|
|
|
flightDate,
|
|
|
</if>
|
|
|
<if test="turnpiece != null" >
|
|
|
turnPiece,
|
|
|
</if>
|
|
|
<if test="turnweight != null" >
|
|
|
turnWeight,
|
|
|
</if>
|
|
|
<if test="customcode != null" >
|
|
|
customCode,
|
|
|
</if>
|
|
|
<if test="turnunloading != null" >
|
|
|
turnUnLoading,
|
|
|
</if>
|
|
|
<if test="pno != null" >
|
|
|
pNo,
|
|
|
</if>
|
|
|
<if test="status != null" >
|
|
|
status,
|
|
|
</if>
|
|
|
<if test="turntype != null" >
|
|
|
turnType,
|
|
|
</if>
|
|
|
<if test="goodsname != null" >
|
|
|
goodsName,
|
|
|
</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="awba != null" >
|
|
|
#{awba,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="turnpiece != null" >
|
|
|
#{turnpiece,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="turnweight != null" >
|
|
|
#{turnweight,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
<if test="customcode != null" >
|
|
|
#{customcode,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="turnunloading != null" >
|
|
|
#{turnunloading,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="pno != null" >
|
|
|
#{pno,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="status != null" >
|
|
|
#{status,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="turntype != null" >
|
|
|
#{turntype,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="goodsname != null" >
|
|
|
#{goodsname,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_TRANS" >
|
|
|
update CUSTOM_TRANS
|
|
|
<set >
|
|
|
<if test="uuid1201 != null" >
|
|
|
uuid1201 = #{uuid1201,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="awba != null" >
|
|
|
awba = #{awba,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="turnpiece != null" >
|
|
|
turnPiece = #{turnpiece,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="turnweight != null" >
|
|
|
turnWeight = #{turnweight,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
<if test="customcode != null" >
|
|
|
customCode = #{customcode,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="turnunloading != null" >
|
|
|
turnUnLoading = #{turnunloading,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="pno != null" >
|
|
|
pNo = #{pno,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="status != null" >
|
|
|
status = #{status,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="turntype != null" >
|
|
|
turnType = #{turntype,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="goodsname != null" >
|
|
|
goodsName = #{goodsname,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_TRANS" >
|
|
|
update CUSTOM_TRANS
|
|
|
set uuid1201 = #{uuid1201,jdbcType=VARCHAR},
|
|
|
awba = #{awba,jdbcType=VARCHAR},
|
|
|
carrier = #{carrier,jdbcType=VARCHAR},
|
|
|
flightNo = #{flightno,jdbcType=VARCHAR},
|
|
|
flightDate = #{flightdate,jdbcType=DATE},
|
|
|
turnPiece = #{turnpiece,jdbcType=VARCHAR},
|
|
|
turnWeight = #{turnweight,jdbcType=DECIMAL},
|
|
|
customCode = #{customcode,jdbcType=VARCHAR},
|
|
|
turnUnLoading = #{turnunloading,jdbcType=VARCHAR},
|
|
|
pNo = #{pno,jdbcType=VARCHAR},
|
|
|
status = #{status,jdbcType=VARCHAR},
|
|
|
turnType = #{turntype,jdbcType=VARCHAR},
|
|
|
goodsName = #{goodsname,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> |
|
|
\ No newline at end of file |
...
|
...
|
|