|
|
<?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.tianbo.analysis.dao.ARRIVEDMASTERMapper" >
|
|
|
<resultMap id="BaseResultMap" type="com.tianbo.analysis.model.ARRIVEDMASTER" >
|
|
|
<id column="AUTOID" property="autoid" jdbcType="VARCHAR" />
|
|
|
<result column="WAYBILLNOMASTER" property="waybillnomaster" jdbcType="VARCHAR" />
|
|
|
<result column="TCD_NAME" property="tcdName" jdbcType="VARCHAR" />
|
|
|
<result column="TCD_TYPECODE" property="tcdTypecode" jdbcType="VARCHAR" />
|
|
|
<result column="FLIGHTNO" property="flightno" jdbcType="VARCHAR" />
|
|
|
<result column="FLIGHTDATE" property="flightdate" jdbcType="TIMESTAMP" />
|
|
|
<result column="CARRIER" property="carrier" jdbcType="VARCHAR" />
|
|
|
<result column="ORIGINATINGSTATION" property="originatingstation" jdbcType="VARCHAR" />
|
|
|
<result column="O_NAME" property="oName" jdbcType="VARCHAR" />
|
|
|
<result column="DESTINATIONSTATION" property="destinationstation" jdbcType="VARCHAR" />
|
|
|
<result column="FD_NAME" property="fdName" jdbcType="VARCHAR" />
|
|
|
<result column="ARRIVEDTOTALPIECE" property="arrivedtotalpiece" jdbcType="VARCHAR" />
|
|
|
<result column="TOTALPIECEQUANTITY" property="totalpiecequantity" jdbcType="VARCHAR" />
|
|
|
<result column="ARRIVEDTOTALWEIGHT" property="arrivedtotalweight" jdbcType="VARCHAR" />
|
|
|
<result column="GROSSWEIGHTMEASUREUC" property="grossweightmeasureuc" jdbcType="VARCHAR" />
|
|
|
<result column="TOTALGROSSWEIGHTMEASURE" property="totalgrossweightmeasure" jdbcType="VARCHAR" />
|
|
|
<result column="TOTALGROSSWEIGHTMEASUREUC" property="totalgrossweightmeasureuc" jdbcType="VARCHAR" />
|
|
|
<result column="CHARGEABLEWEIGHTMEASURE" property="chargeableweightmeasure" jdbcType="VARCHAR" />
|
|
|
<result column="CHARGEABLEWEIGHTMEASUREUC" property="chargeableweightmeasureuc" jdbcType="VARCHAR" />
|
|
|
<result column="ARRIVEDDATE" property="arriveddate" jdbcType="TIMESTAMP" />
|
|
|
<result column="TRANSPORTSPLITDESCRIPTION" property="transportsplitdescription" jdbcType="VARCHAR" />
|
|
|
<result column="CUSTOMSCODE" property="customscode" jdbcType="VARCHAR" />
|
|
|
<result column="PRODUCTNAME" property="productname" jdbcType="VARCHAR" />
|
|
|
<result column="STATUS" property="status" jdbcType="VARCHAR" />
|
|
|
<result column="RECEIPTINFORMATION" property="receiptinformation" jdbcType="VARCHAR" />
|
|
|
<result column="CREATEDATE" property="createdate" jdbcType="TIMESTAMP" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List" >
|
|
|
AUTOID, WAYBILLNOMASTER, TCD_NAME, TCD_TYPECODE, FLIGHTNO, FLIGHTDATE, CARRIER, ORIGINATINGSTATION,
|
|
|
O_NAME, DESTINATIONSTATION, FD_NAME, ARRIVEDTOTALPIECE, TOTALPIECEQUANTITY, ARRIVEDTOTALWEIGHT,
|
|
|
GROSSWEIGHTMEASUREUC, TOTALGROSSWEIGHTMEASURE, TOTALGROSSWEIGHTMEASUREUC, CHARGEABLEWEIGHTMEASURE,
|
|
|
CHARGEABLEWEIGHTMEASUREUC, ARRIVEDDATE, TRANSPORTSPLITDESCRIPTION, CUSTOMSCODE, PRODUCTNAME,
|
|
|
STATUS, RECEIPTINFORMATION, CREATEDATE
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
|
from ARRIVEDMASTER
|
|
|
where AUTOID = #{autoid,jdbcType=VARCHAR}
|
|
|
</select>
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
|
|
|
delete from ARRIVEDMASTER
|
|
|
where AUTOID = #{autoid,jdbcType=VARCHAR}
|
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.tianbo.analysis.model.ARRIVEDMASTER" >
|
|
|
insert into ARRIVEDMASTER (AUTOID, WAYBILLNOMASTER, TCD_NAME,
|
|
|
TCD_TYPECODE, FLIGHTNO, FLIGHTDATE,
|
|
|
CARRIER, ORIGINATINGSTATION, O_NAME,
|
|
|
DESTINATIONSTATION, FD_NAME, ARRIVEDTOTALPIECE,
|
|
|
TOTALPIECEQUANTITY, ARRIVEDTOTALWEIGHT,
|
|
|
GROSSWEIGHTMEASUREUC, TOTALGROSSWEIGHTMEASURE,
|
|
|
TOTALGROSSWEIGHTMEASUREUC, CHARGEABLEWEIGHTMEASURE,
|
|
|
CHARGEABLEWEIGHTMEASUREUC, ARRIVEDDATE,
|
|
|
TRANSPORTSPLITDESCRIPTION, CUSTOMSCODE,
|
|
|
PRODUCTNAME, STATUS, RECEIPTINFORMATION,
|
|
|
CREATEDATE)
|
|
|
values (#{autoid,jdbcType=VARCHAR}, #{waybillnomaster,jdbcType=VARCHAR}, #{tcdName,jdbcType=VARCHAR},
|
|
|
#{tcdTypecode,jdbcType=VARCHAR}, #{flightno,jdbcType=VARCHAR}, #{flightdate,jdbcType=TIMESTAMP},
|
|
|
#{carrier,jdbcType=VARCHAR}, #{originatingstation,jdbcType=VARCHAR}, #{oName,jdbcType=VARCHAR},
|
|
|
#{destinationstation,jdbcType=VARCHAR}, #{fdName,jdbcType=VARCHAR}, #{arrivedtotalpiece,jdbcType=VARCHAR},
|
|
|
#{totalpiecequantity,jdbcType=VARCHAR}, #{arrivedtotalweight,jdbcType=VARCHAR},
|
|
|
#{grossweightmeasureuc,jdbcType=VARCHAR}, #{totalgrossweightmeasure,jdbcType=VARCHAR},
|
|
|
#{totalgrossweightmeasureuc,jdbcType=VARCHAR}, #{chargeableweightmeasure,jdbcType=VARCHAR},
|
|
|
#{chargeableweightmeasureuc,jdbcType=VARCHAR}, #{arriveddate,jdbcType=TIMESTAMP},
|
|
|
#{transportsplitdescription,jdbcType=VARCHAR}, #{customscode,jdbcType=VARCHAR},
|
|
|
#{productname,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR}, #{receiptinformation,jdbcType=VARCHAR},
|
|
|
#{createdate,jdbcType=TIMESTAMP})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.tianbo.analysis.model.ARRIVEDMASTER" >
|
|
|
insert into ARRIVEDMASTER
|
|
|
<trim prefix="(" suffix=")" suffixOverrides="," >
|
|
|
<if test="autoid != null" >
|
|
|
AUTOID,
|
|
|
</if>
|
|
|
<if test="waybillnomaster != null" >
|
|
|
WAYBILLNOMASTER,
|
|
|
</if>
|
|
|
<if test="tcdName != null" >
|
|
|
TCD_NAME,
|
|
|
</if>
|
|
|
<if test="tcdTypecode != null" >
|
|
|
TCD_TYPECODE,
|
|
|
</if>
|
|
|
<if test="flightno != null" >
|
|
|
FLIGHTNO,
|
|
|
</if>
|
|
|
<if test="flightdate != null" >
|
|
|
FLIGHTDATE,
|
|
|
</if>
|
|
|
<if test="carrier != null" >
|
|
|
CARRIER,
|
|
|
</if>
|
|
|
<if test="originatingstation != null" >
|
|
|
ORIGINATINGSTATION,
|
|
|
</if>
|
|
|
<if test="oName != null" >
|
|
|
O_NAME,
|
|
|
</if>
|
|
|
<if test="destinationstation != null" >
|
|
|
DESTINATIONSTATION,
|
|
|
</if>
|
|
|
<if test="fdName != null" >
|
|
|
FD_NAME,
|
|
|
</if>
|
|
|
<if test="arrivedtotalpiece != null" >
|
|
|
ARRIVEDTOTALPIECE,
|
|
|
</if>
|
|
|
<if test="totalpiecequantity != null" >
|
|
|
TOTALPIECEQUANTITY,
|
|
|
</if>
|
|
|
<if test="arrivedtotalweight != null" >
|
|
|
ARRIVEDTOTALWEIGHT,
|
|
|
</if>
|
|
|
<if test="grossweightmeasureuc != null" >
|
|
|
GROSSWEIGHTMEASUREUC,
|
|
|
</if>
|
|
|
<if test="totalgrossweightmeasure != null" >
|
|
|
TOTALGROSSWEIGHTMEASURE,
|
|
|
</if>
|
|
|
<if test="totalgrossweightmeasureuc != null" >
|
|
|
TOTALGROSSWEIGHTMEASUREUC,
|
|
|
</if>
|
|
|
<if test="chargeableweightmeasure != null" >
|
|
|
CHARGEABLEWEIGHTMEASURE,
|
|
|
</if>
|
|
|
<if test="chargeableweightmeasureuc != null" >
|
|
|
CHARGEABLEWEIGHTMEASUREUC,
|
|
|
</if>
|
|
|
<if test="arriveddate != null" >
|
|
|
ARRIVEDDATE,
|
|
|
</if>
|
|
|
<if test="transportsplitdescription != null" >
|
|
|
TRANSPORTSPLITDESCRIPTION,
|
|
|
</if>
|
|
|
<if test="customscode != null" >
|
|
|
CUSTOMSCODE,
|
|
|
</if>
|
|
|
<if test="productname != null" >
|
|
|
PRODUCTNAME,
|
|
|
</if>
|
|
|
<if test="status != null" >
|
|
|
STATUS,
|
|
|
</if>
|
|
|
<if test="receiptinformation != null" >
|
|
|
RECEIPTINFORMATION,
|
|
|
</if>
|
|
|
<if test="createdate != null" >
|
|
|
CREATEDATE,
|
|
|
</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
|
<if test="autoid != null" >
|
|
|
#{autoid,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="waybillnomaster != null" >
|
|
|
#{waybillnomaster,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="tcdName != null" >
|
|
|
#{tcdName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="tcdTypecode != null" >
|
|
|
#{tcdTypecode,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="flightno != null" >
|
|
|
#{flightno,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="flightdate != null" >
|
|
|
#{flightdate,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
<if test="carrier != null" >
|
|
|
#{carrier,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="originatingstation != null" >
|
|
|
#{originatingstation,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="oName != null" >
|
|
|
#{oName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="destinationstation != null" >
|
|
|
#{destinationstation,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="fdName != null" >
|
|
|
#{fdName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="arrivedtotalpiece != null" >
|
|
|
#{arrivedtotalpiece,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="totalpiecequantity != null" >
|
|
|
#{totalpiecequantity,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="arrivedtotalweight != null" >
|
|
|
#{arrivedtotalweight,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="grossweightmeasureuc != null" >
|
|
|
#{grossweightmeasureuc,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="totalgrossweightmeasure != null" >
|
|
|
#{totalgrossweightmeasure,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="totalgrossweightmeasureuc != null" >
|
|
|
#{totalgrossweightmeasureuc,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="chargeableweightmeasure != null" >
|
|
|
#{chargeableweightmeasure,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="chargeableweightmeasureuc != null" >
|
|
|
#{chargeableweightmeasureuc,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="arriveddate != null" >
|
|
|
#{arriveddate,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
<if test="transportsplitdescription != null" >
|
|
|
#{transportsplitdescription,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="customscode != null" >
|
|
|
#{customscode,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="productname != null" >
|
|
|
#{productname,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="status != null" >
|
|
|
#{status,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="receiptinformation != null" >
|
|
|
#{receiptinformation,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="createdate != null" >
|
|
|
#{createdate,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.tianbo.analysis.model.ARRIVEDMASTER" >
|
|
|
update ARRIVEDMASTER
|
|
|
<set >
|
|
|
<if test="waybillnomaster != null" >
|
|
|
WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="tcdName != null" >
|
|
|
TCD_NAME = #{tcdName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="tcdTypecode != null" >
|
|
|
TCD_TYPECODE = #{tcdTypecode,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="flightno != null" >
|
|
|
FLIGHTNO = #{flightno,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="flightdate != null" >
|
|
|
FLIGHTDATE = #{flightdate,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
<if test="carrier != null" >
|
|
|
CARRIER = #{carrier,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="originatingstation != null" >
|
|
|
ORIGINATINGSTATION = #{originatingstation,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="oName != null" >
|
|
|
O_NAME = #{oName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="destinationstation != null" >
|
|
|
DESTINATIONSTATION = #{destinationstation,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="fdName != null" >
|
|
|
FD_NAME = #{fdName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="arrivedtotalpiece != null" >
|
|
|
ARRIVEDTOTALPIECE = #{arrivedtotalpiece,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="totalpiecequantity != null" >
|
|
|
TOTALPIECEQUANTITY = #{totalpiecequantity,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="arrivedtotalweight != null" >
|
|
|
ARRIVEDTOTALWEIGHT = #{arrivedtotalweight,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="grossweightmeasureuc != null" >
|
|
|
GROSSWEIGHTMEASUREUC = #{grossweightmeasureuc,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="totalgrossweightmeasure != null" >
|
|
|
TOTALGROSSWEIGHTMEASURE = #{totalgrossweightmeasure,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="totalgrossweightmeasureuc != null" >
|
|
|
TOTALGROSSWEIGHTMEASUREUC = #{totalgrossweightmeasureuc,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="chargeableweightmeasure != null" >
|
|
|
CHARGEABLEWEIGHTMEASURE = #{chargeableweightmeasure,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="chargeableweightmeasureuc != null" >
|
|
|
CHARGEABLEWEIGHTMEASUREUC = #{chargeableweightmeasureuc,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="arriveddate != null" >
|
|
|
ARRIVEDDATE = #{arriveddate,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
<if test="transportsplitdescription != null" >
|
|
|
TRANSPORTSPLITDESCRIPTION = #{transportsplitdescription,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="customscode != null" >
|
|
|
CUSTOMSCODE = #{customscode,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="productname != null" >
|
|
|
PRODUCTNAME = #{productname,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="status != null" >
|
|
|
STATUS = #{status,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="receiptinformation != null" >
|
|
|
RECEIPTINFORMATION = #{receiptinformation,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="createdate != null" >
|
|
|
CREATEDATE = #{createdate,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
</set>
|
|
|
where AUTOID = #{autoid,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
<update id="updateByPrimaryKey" parameterType="com.tianbo.analysis.model.ARRIVEDMASTER" >
|
|
|
update ARRIVEDMASTER
|
|
|
set WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR},
|
|
|
TCD_NAME = #{tcdName,jdbcType=VARCHAR},
|
|
|
TCD_TYPECODE = #{tcdTypecode,jdbcType=VARCHAR},
|
|
|
FLIGHTNO = #{flightno,jdbcType=VARCHAR},
|
|
|
FLIGHTDATE = #{flightdate,jdbcType=TIMESTAMP},
|
|
|
CARRIER = #{carrier,jdbcType=VARCHAR},
|
|
|
ORIGINATINGSTATION = #{originatingstation,jdbcType=VARCHAR},
|
|
|
O_NAME = #{oName,jdbcType=VARCHAR},
|
|
|
DESTINATIONSTATION = #{destinationstation,jdbcType=VARCHAR},
|
|
|
FD_NAME = #{fdName,jdbcType=VARCHAR},
|
|
|
ARRIVEDTOTALPIECE = #{arrivedtotalpiece,jdbcType=VARCHAR},
|
|
|
TOTALPIECEQUANTITY = #{totalpiecequantity,jdbcType=VARCHAR},
|
|
|
ARRIVEDTOTALWEIGHT = #{arrivedtotalweight,jdbcType=VARCHAR},
|
|
|
GROSSWEIGHTMEASUREUC = #{grossweightmeasureuc,jdbcType=VARCHAR},
|
|
|
TOTALGROSSWEIGHTMEASURE = #{totalgrossweightmeasure,jdbcType=VARCHAR},
|
|
|
TOTALGROSSWEIGHTMEASUREUC = #{totalgrossweightmeasureuc,jdbcType=VARCHAR},
|
|
|
CHARGEABLEWEIGHTMEASURE = #{chargeableweightmeasure,jdbcType=VARCHAR},
|
|
|
CHARGEABLEWEIGHTMEASUREUC = #{chargeableweightmeasureuc,jdbcType=VARCHAR},
|
|
|
ARRIVEDDATE = #{arriveddate,jdbcType=TIMESTAMP},
|
|
|
TRANSPORTSPLITDESCRIPTION = #{transportsplitdescription,jdbcType=VARCHAR},
|
|
|
CUSTOMSCODE = #{customscode,jdbcType=VARCHAR},
|
|
|
PRODUCTNAME = #{productname,jdbcType=VARCHAR},
|
|
|
STATUS = #{status,jdbcType=VARCHAR},
|
|
|
RECEIPTINFORMATION = #{receiptinformation,jdbcType=VARCHAR},
|
|
|
CREATEDATE = #{createdate,jdbcType=TIMESTAMP}
|
|
|
where AUTOID = #{autoid,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
|
|
|
|
|
|
<update id="updateRECEIPTION" parameterType="com.tianbo.analysis.model.ARRIVEDMASTER" >
|
|
|
UPDATE ARRIVEDMASTER
|
|
|
SET RECEIPTINFORMATION= #{receiptinformation,jdbcType=VARCHAR}
|
|
|
WHERE WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR}
|
|
|
AND
|
|
|
FLIGHTDATE= #{flightDate,jdbcType=TIMESTAMP}
|
|
|
AND
|
|
|
WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
|
|
|
<select id="selectAutoIdByAwb" parameterType="com.tianbo.analysis.model.ARRIVEDMASTER" resultType="com.tianbo.analysis.model.ARRIVEDMASTER">
|
|
|
SELECT AUTOID
|
|
|
FROM ARRIVEDMASTER
|
|
|
WHERE
|
|
|
FLIGHTNO= #{flightno,jdbcType=VARCHAR}
|
|
|
AND
|
|
|
FLIGHTDATE= #{flightDate,jdbcType=TIMESTAMP}
|
|
|
AND
|
|
|
WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR}
|
|
|
</select>
|
|
|
</mapper> |
|
|
\ No newline at end of file |
...
|
...
|
|