|
|
<?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.imfClient.dao.CUSTOMSMESSAGEMapper" >
|
|
|
<resultMap id="BaseResultMap" type="com.tianbo.imfClient.model.CUSTOMSMESSAGE" >
|
|
|
<result column="AUTOID" property="autoid" jdbcType="VARCHAR" />
|
|
|
<result column="MESSAGEID" property="messageid" jdbcType="VARCHAR" />
|
|
|
<result column="MESSAGETYPE" property="messagetype" jdbcType="VARCHAR" />
|
|
|
<result column="MESSAGESTATUS" property="messagestatus" jdbcType="VARCHAR" />
|
|
|
<result column="SENDTIME" property="sendtime" jdbcType="TIMESTAMP" />
|
|
|
<result column="RECEIVETIME" property="receivetime" jdbcType="TIMESTAMP" />
|
|
|
<result column="OBJECTID" property="objectid" jdbcType="VARCHAR" />
|
|
|
<result column="FLIGHTNO" property="flightno" jdbcType="VARCHAR" />
|
|
|
<result column="FLIGHTDATE" property="flightdate" jdbcType="TIMESTAMP" />
|
|
|
<result column="MASTERAUTOID" property="masterautoid" jdbcType="VARCHAR" />
|
|
|
<result column="WAYBILLNOMASTER" property="waybillnomaster" jdbcType="VARCHAR" />
|
|
|
<result column="SECONDARYAUTOID" property="secondaryautoid" jdbcType="VARCHAR" />
|
|
|
<result column="WAYBILLNOSECONDARY" property="waybillnosecondary" jdbcType="VARCHAR" />
|
|
|
<result column="PCS" property="pcs" jdbcType="DECIMAL" />
|
|
|
<result column="WT" property="wt" jdbcType="DECIMAL" />
|
|
|
<result column="RESPONSECODE" property="responsecode" jdbcType="VARCHAR" />
|
|
|
<result column="RESPONSETEXT" property="responsetext" jdbcType="VARCHAR" />
|
|
|
<result column="CREATETIME" property="createtime" jdbcType="TIMESTAMP" />
|
|
|
</resultMap>
|
|
|
<resultMap id="ResultMapWithBLOBs" type="com.tianbo.imfClient.model.CUSTOMSMESSAGEWithBLOBs" extends="BaseResultMap" >
|
|
|
<result column="MESSAGECONTENT" property="messagecontent" jdbcType="CLOB" />
|
|
|
<result column="RECEIVECONTENT" property="receivecontent" jdbcType="CLOB" />
|
|
|
</resultMap>
|
|
|
<sql id="Blob_Column_List" >
|
|
|
MESSAGECONTENT, RECEIVECONTENT
|
|
|
</sql>
|
|
|
<sql id="Response_Base">
|
|
|
MESSAGETYPE, WAYBILLNOMASTER, WAYBILLNOSECONDARY, RESPONSETEXT
|
|
|
</sql>
|
|
|
<select id="selectCustomResponse" parameterType="java.lang.String" resultType="com.tianbo.imfClient.model.CUSTOMSMESSAGE">
|
|
|
SELECT
|
|
|
<include refid="Response_Base" />
|
|
|
FROM
|
|
|
CUSTOMSMESSAGE
|
|
|
WHERE
|
|
|
WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR}
|
|
|
ORDER BY MESSAGETYPE
|
|
|
</select>
|
|
|
<select id="selectCustomId" parameterType="java.lang.String" resultType="com.tianbo.imfClient.model.CUSTOMSMESSAGE">
|
|
|
SELECT
|
|
|
MESSAGEID,
|
|
|
<include refid="Response_Base" />
|
|
|
FROM
|
|
|
CUSTOMSMESSAGE
|
|
|
WHERE
|
|
|
WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR}
|
|
|
ORDER BY MESSAGETYPE
|
|
|
</select>
|
|
|
<insert id="insert" parameterType="com.tianbo.imfClient.model.CUSTOMSMESSAGEWithBLOBs" >
|
|
|
insert into CUSTOMSMESSAGE (AUTOID, MESSAGEID, MESSAGETYPE,
|
|
|
MESSAGESTATUS, SENDTIME, RECEIVETIME,
|
|
|
OBJECTID, FLIGHTNO, FLIGHTDATE,
|
|
|
MASTERAUTOID, WAYBILLNOMASTER, SECONDARYAUTOID,
|
|
|
WAYBILLNOSECONDARY, PCS, WT,
|
|
|
RESPONSECODE, RESPONSETEXT, CREATETIME,
|
|
|
MESSAGECONTENT, RECEIVECONTENT)
|
|
|
values (#{autoid,jdbcType=VARCHAR}, #{messageid,jdbcType=VARCHAR}, #{messagetype,jdbcType=VARCHAR},
|
|
|
#{messagestatus,jdbcType=VARCHAR}, #{sendtime,jdbcType=TIMESTAMP}, #{receivetime,jdbcType=TIMESTAMP},
|
|
|
#{objectid,jdbcType=VARCHAR}, #{flightno,jdbcType=VARCHAR}, #{flightdate,jdbcType=TIMESTAMP},
|
|
|
#{masterautoid,jdbcType=VARCHAR}, #{waybillnomaster,jdbcType=VARCHAR}, #{secondaryautoid,jdbcType=VARCHAR},
|
|
|
#{waybillnosecondary,jdbcType=VARCHAR}, #{pcs,jdbcType=DECIMAL}, #{wt,jdbcType=DECIMAL},
|
|
|
#{responsecode,jdbcType=VARCHAR}, #{responsetext,jdbcType=VARCHAR}, #{createtime,jdbcType=TIMESTAMP},
|
|
|
#{messagecontent,jdbcType=CLOB}, #{receivecontent,jdbcType=CLOB})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.tianbo.imfClient.model.CUSTOMSMESSAGEWithBLOBs" >
|
|
|
insert into CUSTOMSMESSAGE
|
|
|
<trim prefix="(" suffix=")" suffixOverrides="," >
|
|
|
<if test="autoid != null" >
|
|
|
AUTOID,
|
|
|
</if>
|
|
|
<if test="messageid != null" >
|
|
|
MESSAGEID,
|
|
|
</if>
|
|
|
<if test="messagetype != null" >
|
|
|
MESSAGETYPE,
|
|
|
</if>
|
|
|
<if test="messagestatus != null" >
|
|
|
MESSAGESTATUS,
|
|
|
</if>
|
|
|
<if test="sendtime != null" >
|
|
|
SENDTIME,
|
|
|
</if>
|
|
|
<if test="receivetime != null" >
|
|
|
RECEIVETIME,
|
|
|
</if>
|
|
|
<if test="objectid != null" >
|
|
|
OBJECTID,
|
|
|
</if>
|
|
|
<if test="flightno != null" >
|
|
|
FLIGHTNO,
|
|
|
</if>
|
|
|
<if test="flightdate != null" >
|
|
|
FLIGHTDATE,
|
|
|
</if>
|
|
|
<if test="masterautoid != null" >
|
|
|
MASTERAUTOID,
|
|
|
</if>
|
|
|
<if test="waybillnomaster != null" >
|
|
|
WAYBILLNOMASTER,
|
|
|
</if>
|
|
|
<if test="secondaryautoid != null" >
|
|
|
SECONDARYAUTOID,
|
|
|
</if>
|
|
|
<if test="waybillnosecondary != null" >
|
|
|
WAYBILLNOSECONDARY,
|
|
|
</if>
|
|
|
<if test="pcs != null" >
|
|
|
PCS,
|
|
|
</if>
|
|
|
<if test="wt != null" >
|
|
|
WT,
|
|
|
</if>
|
|
|
<if test="responsecode != null" >
|
|
|
RESPONSECODE,
|
|
|
</if>
|
|
|
<if test="responsetext != null" >
|
|
|
RESPONSETEXT,
|
|
|
</if>
|
|
|
<if test="createtime != null" >
|
|
|
CREATETIME,
|
|
|
</if>
|
|
|
<if test="messagecontent != null" >
|
|
|
MESSAGECONTENT,
|
|
|
</if>
|
|
|
<if test="receivecontent != null" >
|
|
|
RECEIVECONTENT,
|
|
|
</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
|
<if test="autoid != null" >
|
|
|
#{autoid,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="messageid != null" >
|
|
|
#{messageid,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="messagetype != null" >
|
|
|
#{messagetype,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="messagestatus != null" >
|
|
|
#{messagestatus,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="sendtime != null" >
|
|
|
#{sendtime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
<if test="receivetime != null" >
|
|
|
#{receivetime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
<if test="objectid != null" >
|
|
|
#{objectid,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="flightno != null" >
|
|
|
#{flightno,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="flightdate != null" >
|
|
|
#{flightdate,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
<if test="masterautoid != null" >
|
|
|
#{masterautoid,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="waybillnomaster != null" >
|
|
|
#{waybillnomaster,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="secondaryautoid != null" >
|
|
|
#{secondaryautoid,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="waybillnosecondary != null" >
|
|
|
#{waybillnosecondary,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="pcs != null" >
|
|
|
#{pcs,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
<if test="wt != null" >
|
|
|
#{wt,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
<if test="responsecode != null" >
|
|
|
#{responsecode,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="responsetext != null" >
|
|
|
#{responsetext,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="createtime != null" >
|
|
|
#{createtime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
<if test="messagecontent != null" >
|
|
|
#{messagecontent,jdbcType=CLOB},
|
|
|
</if>
|
|
|
<if test="receivecontent != null" >
|
|
|
#{receivecontent,jdbcType=CLOB},
|
|
|
</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
</mapper> |
|
|
\ No newline at end of file |
...
|
...
|
|