|
|
<?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.messagebus.dao.CUSTOM_RESPONSEMapper" >
|
|
|
<resultMap id="BaseResultMap" type="com.tianbo.messagebus.model.CUSTOM_RESPONSE" >
|
|
|
<id column="id" property="id" jdbcType="VARCHAR" />
|
|
|
<result column="flightDate" property="flightdate" jdbcType="DATE" />
|
|
|
<result column="flightNo" property="flightno" jdbcType="VARCHAR" />
|
|
|
<result column="carrier" property="carrier" jdbcType="VARCHAR" />
|
|
|
<result column="awbaNo" property="awbano" jdbcType="VARCHAR" />
|
|
|
<result column="awbhNo" property="awbhno" jdbcType="VARCHAR" />
|
|
|
<result column="busType" property="bustype" jdbcType="VARCHAR" />
|
|
|
<result column="busDate" property="busdate" jdbcType="TIMESTAMP" />
|
|
|
<result column="busWeight" property="busweight" jdbcType="DECIMAL" />
|
|
|
<result column="busPiece" property="buspiece" jdbcType="INTEGER" />
|
|
|
<result column="operType" property="opertype" jdbcType="VARCHAR" />
|
|
|
<result column="cusMsgId" property="cusmsgid" jdbcType="VARCHAR" />
|
|
|
<result column="cusSenderId" property="cussenderid" jdbcType="VARCHAR" />
|
|
|
<result column="cusReciverId" property="cusreciverid" jdbcType="VARCHAR" />
|
|
|
<result column="cusVersion" property="cusversion" jdbcType="VARCHAR" />
|
|
|
<result column="cusFunctionCode" property="cusfunctioncode" jdbcType="VARCHAR" />
|
|
|
<result column="cusResRcvTime" property="cusresrcvtime" jdbcType="TIMESTAMP" />
|
|
|
<result column="cusResSendTime" property="cusressendtime" jdbcType="TIMESTAMP" />
|
|
|
<result column="cusResCode" property="cusrescode" jdbcType="VARCHAR" />
|
|
|
<result column="cusResStatus" property="cusresstatus" jdbcType="VARCHAR" />
|
|
|
<result column="operUserName" property="operusername" jdbcType="VARCHAR" />
|
|
|
<result column="operSystemName" property="opersystemname" jdbcType="VARCHAR" />
|
|
|
<result column="operReason" property="operreason" jdbcType="VARCHAR" />
|
|
|
<result column="operPerson" property="operperson" jdbcType="VARCHAR" />
|
|
|
<result column="operTel" property="opertel" jdbcType="VARCHAR" />
|
|
|
</resultMap>
|
|
|
<resultMap id="ResultMapWithBLOBs" type="com.tianbo.messagebus.model.CUSTOM_RESPONSE" extends="BaseResultMap" >
|
|
|
<result column="cusResText" property="cusrestext" jdbcType="LONGVARCHAR" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List" >
|
|
|
id, flightDate, flightNo, carrier, awbaNo, awbhNo, busType, busDate, busWeight, busPiece,
|
|
|
operType, cusMsgId, cusSenderId, cusReciverId, cusVersion, cusFunctionCode, cusResRcvTime,
|
|
|
cusResSendTime, cusResCode, cusResStatus, operUserName, operSystemName, operReason,
|
|
|
operPerson, operTel
|
|
|
</sql>
|
|
|
<sql id="Blob_Column_List" >
|
|
|
cusResText
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" resultMap="ResultMapWithBLOBs" parameterType="java.lang.String" >
|
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
|
,
|
|
|
<include refid="Blob_Column_List" />
|
|
|
from CUSTOM_RESPONSE
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</select>
|
|
|
<select id="selectByCustomMsgId" resultMap="ResultMapWithBLOBs" parameterType="java.lang.String" >
|
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
|
,
|
|
|
<include refid="Blob_Column_List" />
|
|
|
from CUSTOM_RESPONSE
|
|
|
where cusMsgId = #{cusmsgid,jdbcType=VARCHAR}
|
|
|
</select>
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
|
|
|
delete from CUSTOM_RESPONSE
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.tianbo.messagebus.model.CUSTOM_RESPONSE" >
|
|
|
insert into CUSTOM_RESPONSE (id, flightDate, flightNo,
|
|
|
carrier, awbaNo, awbhNo,
|
|
|
busType, busDate, busWeight,
|
|
|
busPiece, operType, cusMsgId,
|
|
|
cusSenderId, cusReciverId, cusVersion,
|
|
|
cusFunctionCode, cusResRcvTime, cusResSendTime,
|
|
|
cusResCode, cusResStatus, operUserName,
|
|
|
operSystemName, operReason, operPerson,
|
|
|
operTel, cusResText)
|
|
|
values (#{id,jdbcType=VARCHAR}, #{flightdate,jdbcType=DATE}, #{flightno,jdbcType=VARCHAR},
|
|
|
#{carrier,jdbcType=VARCHAR}, #{awbano,jdbcType=VARCHAR}, #{awbhno,jdbcType=VARCHAR},
|
|
|
#{bustype,jdbcType=VARCHAR}, #{busdate,jdbcType=TIMESTAMP}, #{busweight,jdbcType=DECIMAL},
|
|
|
#{buspiece,jdbcType=INTEGER}, #{opertype,jdbcType=VARCHAR}, #{cusmsgid,jdbcType=VARCHAR},
|
|
|
#{cussenderid,jdbcType=VARCHAR}, #{cusreciverid,jdbcType=VARCHAR}, #{cusversion,jdbcType=VARCHAR},
|
|
|
#{cusfunctioncode,jdbcType=VARCHAR}, #{cusresrcvtime,jdbcType=TIMESTAMP}, #{cusressendtime,jdbcType=TIMESTAMP},
|
|
|
#{cusrescode,jdbcType=VARCHAR}, #{cusresstatus,jdbcType=VARCHAR}, #{operusername,jdbcType=VARCHAR},
|
|
|
#{opersystemname,jdbcType=VARCHAR}, #{operreason,jdbcType=VARCHAR}, #{operperson,jdbcType=VARCHAR},
|
|
|
#{opertel,jdbcType=VARCHAR}, #{cusrestext,jdbcType=LONGVARCHAR})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.tianbo.messagebus.model.CUSTOM_RESPONSE" >
|
|
|
insert into CUSTOM_RESPONSE
|
|
|
<trim prefix="(" suffix=")" suffixOverrides="," >
|
|
|
<if test="id != null" >
|
|
|
id,
|
|
|
</if>
|
|
|
<if test="flightdate != null" >
|
|
|
flightDate,
|
|
|
</if>
|
|
|
<if test="flightno != null" >
|
|
|
flightNo,
|
|
|
</if>
|
|
|
<if test="carrier != null" >
|
|
|
carrier,
|
|
|
</if>
|
|
|
<if test="awbano != null" >
|
|
|
awbaNo,
|
|
|
</if>
|
|
|
<if test="awbhno != null" >
|
|
|
awbhNo,
|
|
|
</if>
|
|
|
<if test="bustype != null" >
|
|
|
busType,
|
|
|
</if>
|
|
|
<if test="busdate != null" >
|
|
|
busDate,
|
|
|
</if>
|
|
|
<if test="busweight != null" >
|
|
|
busWeight,
|
|
|
</if>
|
|
|
<if test="buspiece != null" >
|
|
|
busPiece,
|
|
|
</if>
|
|
|
<if test="opertype != null" >
|
|
|
operType,
|
|
|
</if>
|
|
|
<if test="cusmsgid != null" >
|
|
|
cusMsgId,
|
|
|
</if>
|
|
|
<if test="cussenderid != null" >
|
|
|
cusSenderId,
|
|
|
</if>
|
|
|
<if test="cusreciverid != null" >
|
|
|
cusReciverId,
|
|
|
</if>
|
|
|
<if test="cusversion != null" >
|
|
|
cusVersion,
|
|
|
</if>
|
|
|
<if test="cusfunctioncode != null" >
|
|
|
cusFunctionCode,
|
|
|
</if>
|
|
|
<if test="cusresrcvtime != null" >
|
|
|
cusResRcvTime,
|
|
|
</if>
|
|
|
<if test="cusressendtime != null" >
|
|
|
cusResSendTime,
|
|
|
</if>
|
|
|
<if test="cusrescode != null" >
|
|
|
cusResCode,
|
|
|
</if>
|
|
|
<if test="cusresstatus != null" >
|
|
|
cusResStatus,
|
|
|
</if>
|
|
|
<if test="operusername != null" >
|
|
|
operUserName,
|
|
|
</if>
|
|
|
<if test="opersystemname != null" >
|
|
|
operSystemName,
|
|
|
</if>
|
|
|
<if test="operreason != null" >
|
|
|
operReason,
|
|
|
</if>
|
|
|
<if test="operperson != null" >
|
|
|
operPerson,
|
|
|
</if>
|
|
|
<if test="opertel != null" >
|
|
|
operTel,
|
|
|
</if>
|
|
|
<if test="cusrestext != null" >
|
|
|
cusResText,
|
|
|
</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
|
<if test="id != null" >
|
|
|
#{id,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="flightdate != null" >
|
|
|
#{flightdate,jdbcType=DATE},
|
|
|
</if>
|
|
|
<if test="flightno != null" >
|
|
|
#{flightno,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="carrier != null" >
|
|
|
#{carrier,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="awbano != null" >
|
|
|
#{awbano,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="awbhno != null" >
|
|
|
#{awbhno,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="bustype != null" >
|
|
|
#{bustype,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="busdate != null" >
|
|
|
#{busdate,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
<if test="busweight != null" >
|
|
|
#{busweight,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
<if test="buspiece != null" >
|
|
|
#{buspiece,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="opertype != null" >
|
|
|
#{opertype,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="cusmsgid != null" >
|
|
|
#{cusmsgid,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="cussenderid != null" >
|
|
|
#{cussenderid,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="cusreciverid != null" >
|
|
|
#{cusreciverid,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="cusversion != null" >
|
|
|
#{cusversion,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="cusfunctioncode != null" >
|
|
|
#{cusfunctioncode,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="cusresrcvtime != null" >
|
|
|
#{cusresrcvtime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
<if test="cusressendtime != null" >
|
|
|
#{cusressendtime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
<if test="cusrescode != null" >
|
|
|
#{cusrescode,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="cusresstatus != null" >
|
|
|
#{cusresstatus,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="operusername != null" >
|
|
|
#{operusername,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="opersystemname != null" >
|
|
|
#{opersystemname,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="operreason != null" >
|
|
|
#{operreason,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="operperson != null" >
|
|
|
#{operperson,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="opertel != null" >
|
|
|
#{opertel,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="cusrestext != null" >
|
|
|
#{cusrestext,jdbcType=LONGVARCHAR},
|
|
|
</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.tianbo.messagebus.model.CUSTOM_RESPONSE" >
|
|
|
update CUSTOM_RESPONSE
|
|
|
<set >
|
|
|
<if test="flightdate != null" >
|
|
|
flightDate = #{flightdate,jdbcType=DATE},
|
|
|
</if>
|
|
|
<if test="flightno != null" >
|
|
|
flightNo = #{flightno,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="carrier != null" >
|
|
|
carrier = #{carrier,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="awbano != null" >
|
|
|
awbaNo = #{awbano,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="awbhno != null" >
|
|
|
awbhNo = #{awbhno,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="bustype != null" >
|
|
|
busType = #{bustype,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="busdate != null" >
|
|
|
busDate = #{busdate,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
<if test="busweight != null" >
|
|
|
busWeight = #{busweight,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
<if test="buspiece != null" >
|
|
|
busPiece = #{buspiece,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="opertype != null" >
|
|
|
operType = #{opertype,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="cusmsgid != null" >
|
|
|
cusMsgId = #{cusmsgid,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="cussenderid != null" >
|
|
|
cusSenderId = #{cussenderid,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="cusreciverid != null" >
|
|
|
cusReciverId = #{cusreciverid,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="cusversion != null" >
|
|
|
cusVersion = #{cusversion,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="cusfunctioncode != null" >
|
|
|
cusFunctionCode = #{cusfunctioncode,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="cusresrcvtime != null" >
|
|
|
cusResRcvTime = #{cusresrcvtime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
<if test="cusressendtime != null" >
|
|
|
cusResSendTime = #{cusressendtime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
<if test="cusrescode != null" >
|
|
|
cusResCode = #{cusrescode,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="cusresstatus != null" >
|
|
|
cusResStatus = #{cusresstatus,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="operusername != null" >
|
|
|
operUserName = #{operusername,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="opersystemname != null" >
|
|
|
operSystemName = #{opersystemname,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="operreason != null" >
|
|
|
operReason = #{operreason,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="operperson != null" >
|
|
|
operPerson = #{operperson,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="opertel != null" >
|
|
|
operTel = #{opertel,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="cusrestext != null" >
|
|
|
cusResText = #{cusrestext,jdbcType=LONGVARCHAR},
|
|
|
</if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.tianbo.messagebus.model.CUSTOM_RESPONSE" >
|
|
|
update CUSTOM_RESPONSE
|
|
|
set flightDate = #{flightdate,jdbcType=DATE},
|
|
|
flightNo = #{flightno,jdbcType=VARCHAR},
|
|
|
carrier = #{carrier,jdbcType=VARCHAR},
|
|
|
awbaNo = #{awbano,jdbcType=VARCHAR},
|
|
|
awbhNo = #{awbhno,jdbcType=VARCHAR},
|
|
|
busType = #{bustype,jdbcType=VARCHAR},
|
|
|
busDate = #{busdate,jdbcType=TIMESTAMP},
|
|
|
busWeight = #{busweight,jdbcType=DECIMAL},
|
|
|
busPiece = #{buspiece,jdbcType=INTEGER},
|
|
|
operType = #{opertype,jdbcType=VARCHAR},
|
|
|
cusMsgId = #{cusmsgid,jdbcType=VARCHAR},
|
|
|
cusSenderId = #{cussenderid,jdbcType=VARCHAR},
|
|
|
cusReciverId = #{cusreciverid,jdbcType=VARCHAR},
|
|
|
cusVersion = #{cusversion,jdbcType=VARCHAR},
|
|
|
cusFunctionCode = #{cusfunctioncode,jdbcType=VARCHAR},
|
|
|
cusResRcvTime = #{cusresrcvtime,jdbcType=TIMESTAMP},
|
|
|
cusResSendTime = #{cusressendtime,jdbcType=TIMESTAMP},
|
|
|
cusResCode = #{cusrescode,jdbcType=VARCHAR},
|
|
|
cusResStatus = #{cusresstatus,jdbcType=VARCHAR},
|
|
|
operUserName = #{operusername,jdbcType=VARCHAR},
|
|
|
operSystemName = #{opersystemname,jdbcType=VARCHAR},
|
|
|
operReason = #{operreason,jdbcType=VARCHAR},
|
|
|
operPerson = #{operperson,jdbcType=VARCHAR},
|
|
|
operTel = #{opertel,jdbcType=VARCHAR},
|
|
|
cusResText = #{cusrestext,jdbcType=LONGVARCHAR}
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
<update id="updateByPrimaryKey" parameterType="com.tianbo.messagebus.model.CUSTOM_RESPONSE" >
|
|
|
update CUSTOM_RESPONSE
|
|
|
set flightDate = #{flightdate,jdbcType=DATE},
|
|
|
flightNo = #{flightno,jdbcType=VARCHAR},
|
|
|
carrier = #{carrier,jdbcType=VARCHAR},
|
|
|
awbaNo = #{awbano,jdbcType=VARCHAR},
|
|
|
awbhNo = #{awbhno,jdbcType=VARCHAR},
|
|
|
busType = #{bustype,jdbcType=VARCHAR},
|
|
|
busDate = #{busdate,jdbcType=TIMESTAMP},
|
|
|
busWeight = #{busweight,jdbcType=DECIMAL},
|
|
|
busPiece = #{buspiece,jdbcType=INTEGER},
|
|
|
operType = #{opertype,jdbcType=VARCHAR},
|
|
|
cusMsgId = #{cusmsgid,jdbcType=VARCHAR},
|
|
|
cusSenderId = #{cussenderid,jdbcType=VARCHAR},
|
|
|
cusReciverId = #{cusreciverid,jdbcType=VARCHAR},
|
|
|
cusVersion = #{cusversion,jdbcType=VARCHAR},
|
|
|
cusFunctionCode = #{cusfunctioncode,jdbcType=VARCHAR},
|
|
|
cusResRcvTime = #{cusresrcvtime,jdbcType=TIMESTAMP},
|
|
|
cusResSendTime = #{cusressendtime,jdbcType=TIMESTAMP},
|
|
|
cusResCode = #{cusrescode,jdbcType=VARCHAR},
|
|
|
cusResStatus = #{cusresstatus,jdbcType=VARCHAR},
|
|
|
operUserName = #{operusername,jdbcType=VARCHAR},
|
|
|
operSystemName = #{opersystemname,jdbcType=VARCHAR},
|
|
|
operReason = #{operreason,jdbcType=VARCHAR},
|
|
|
operPerson = #{operperson,jdbcType=VARCHAR},
|
|
|
operTel = #{opertel,jdbcType=VARCHAR}
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
</mapper> |
...
|
...
|
|