|
|
<?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.sy.mapper.T_AIR_REPERTORYMapper">
|
|
|
<resultMap id="BaseResultMap" type="com.sy.model.T_AIR_REPERTORY">
|
|
|
<id column="MAWB_NO" jdbcType="VARCHAR" property="mawbNo" />
|
|
|
<result column="AREA_CODE" jdbcType="VARCHAR" property="areaCode" />
|
|
|
<result column="SUP_NAME" jdbcType="VARCHAR" property="supName" />
|
|
|
<result column="SUP_CODE" jdbcType="VARCHAR" property="supCode" />
|
|
|
<result column="VOYAGE_NO" jdbcType="VARCHAR" property="voyageNo" />
|
|
|
<result column="IE_DATE" jdbcType="DATE" property="ieDate" />
|
|
|
<result column="IE_FLAG" jdbcType="VARCHAR" property="ieFlag" />
|
|
|
<result column="CNT" jdbcType="DECIMAL" property="cnt" />
|
|
|
<result column="WT" jdbcType="DECIMAL" property="wt" />
|
|
|
<result column="GOOD_NAME" jdbcType="VARCHAR" property="goodName" />
|
|
|
<result column="CREATE_DATE" jdbcType="TIMESTAMP" property="createDate" />
|
|
|
<result column="UPDATE_TIME" jdbcType="TIMESTAMP" property="updateTime" />
|
|
|
<result column="COP_CODE" jdbcType="VARCHAR" property="copCode" />
|
|
|
<result column="COP_NAME" jdbcType="VARCHAR" property="copName" />
|
|
|
<result column="OP_CODE" jdbcType="VARCHAR" property="opCode" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List">
|
|
|
MAWB_NO, AREA_CODE, SUP_NAME, SUP_CODE, VOYAGE_NO, IE_DATE, IE_FLAG, CNT, WT, GOOD_NAME,
|
|
|
CREATE_DATE, UPDATE_TIME, COP_CODE, COP_NAME, OP_CODE
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
|
from t_air_repertory
|
|
|
where MAWB_NO = #{mawbNo,jdbcType=VARCHAR}
|
|
|
</select>
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
|
delete from t_air_repertory
|
|
|
where MAWB_NO = #{mawbNo,jdbcType=VARCHAR}
|
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.sy.model.T_AIR_REPERTORY">
|
|
|
insert into t_air_repertory (MAWB_NO, AREA_CODE, SUP_NAME,
|
|
|
SUP_CODE, VOYAGE_NO, IE_DATE,
|
|
|
IE_FLAG, CNT, WT, GOOD_NAME,
|
|
|
CREATE_DATE, UPDATE_TIME, COP_CODE,
|
|
|
COP_NAME, OP_CODE)
|
|
|
values (#{mawbNo,jdbcType=VARCHAR}, #{areaCode,jdbcType=VARCHAR}, #{supName,jdbcType=VARCHAR},
|
|
|
#{supCode,jdbcType=VARCHAR}, #{voyageNo,jdbcType=VARCHAR}, #{ieDate,jdbcType=DATE},
|
|
|
#{ieFlag,jdbcType=VARCHAR}, #{cnt,jdbcType=DECIMAL}, #{wt,jdbcType=DECIMAL}, #{goodName,jdbcType=VARCHAR},
|
|
|
#{createDate,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{copCode,jdbcType=VARCHAR},
|
|
|
#{copName,jdbcType=VARCHAR}, #{opCode,jdbcType=VARCHAR})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.sy.model.T_AIR_REPERTORY">
|
|
|
insert into t_air_repertory
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
<if test="mawbNo != null">
|
|
|
MAWB_NO,
|
|
|
</if>
|
|
|
<if test="areaCode != null">
|
|
|
AREA_CODE,
|
|
|
</if>
|
|
|
<if test="supName != null">
|
|
|
SUP_NAME,
|
|
|
</if>
|
|
|
<if test="supCode != null">
|
|
|
SUP_CODE,
|
|
|
</if>
|
|
|
<if test="voyageNo != null">
|
|
|
VOYAGE_NO,
|
|
|
</if>
|
|
|
<if test="ieDate != null">
|
|
|
IE_DATE,
|
|
|
</if>
|
|
|
<if test="ieFlag != null">
|
|
|
IE_FLAG,
|
|
|
</if>
|
|
|
<if test="cnt != null">
|
|
|
CNT,
|
|
|
</if>
|
|
|
<if test="wt != null">
|
|
|
WT,
|
|
|
</if>
|
|
|
<if test="goodName != null">
|
|
|
GOOD_NAME,
|
|
|
</if>
|
|
|
<if test="createDate != null">
|
|
|
CREATE_DATE,
|
|
|
</if>
|
|
|
<if test="updateTime != null">
|
|
|
UPDATE_TIME,
|
|
|
</if>
|
|
|
<if test="copCode != null">
|
|
|
COP_CODE,
|
|
|
</if>
|
|
|
<if test="copName != null">
|
|
|
COP_NAME,
|
|
|
</if>
|
|
|
<if test="opCode != null">
|
|
|
OP_CODE,
|
|
|
</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="mawbNo != null">
|
|
|
#{mawbNo,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="areaCode != null">
|
|
|
#{areaCode,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="supName != null">
|
|
|
#{supName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="supCode != null">
|
|
|
#{supCode,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="voyageNo != null">
|
|
|
#{voyageNo,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="ieDate != null">
|
|
|
#{ieDate,jdbcType=DATE},
|
|
|
</if>
|
|
|
<if test="ieFlag != null">
|
|
|
#{ieFlag,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="cnt != null">
|
|
|
#{cnt,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
<if test="wt != null">
|
|
|
#{wt,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
<if test="goodName != null">
|
|
|
#{goodName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="createDate != null">
|
|
|
#{createDate,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
<if test="updateTime != null">
|
|
|
#{updateTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
<if test="copCode != null">
|
|
|
#{copCode,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="copName != null">
|
|
|
#{copName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="opCode != null">
|
|
|
#{opCode,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.sy.model.T_AIR_REPERTORY">
|
|
|
update t_air_repertory
|
|
|
<set>
|
|
|
<if test="areaCode != null">
|
|
|
AREA_CODE = #{areaCode,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="supName != null">
|
|
|
SUP_NAME = #{supName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="supCode != null">
|
|
|
SUP_CODE = #{supCode,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="voyageNo != null">
|
|
|
VOYAGE_NO = #{voyageNo,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="ieDate != null">
|
|
|
IE_DATE = #{ieDate,jdbcType=DATE},
|
|
|
</if>
|
|
|
<if test="ieFlag != null">
|
|
|
IE_FLAG = #{ieFlag,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="cnt != null">
|
|
|
CNT = #{cnt,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
<if test="wt != null">
|
|
|
WT = #{wt,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
<if test="goodName != null">
|
|
|
GOOD_NAME = #{goodName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="createDate != null">
|
|
|
CREATE_DATE = #{createDate,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
<if test="updateTime != null">
|
|
|
UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
<if test="copCode != null">
|
|
|
COP_CODE = #{copCode,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="copName != null">
|
|
|
COP_NAME = #{copName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="opCode != null">
|
|
|
OP_CODE = #{opCode,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
</set>
|
|
|
where MAWB_NO = #{mawbNo,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
<update id="updateByPrimaryKey" parameterType="com.sy.model.T_AIR_REPERTORY">
|
|
|
update t_air_repertory
|
|
|
set AREA_CODE = #{areaCode,jdbcType=VARCHAR},
|
|
|
SUP_NAME = #{supName,jdbcType=VARCHAR},
|
|
|
SUP_CODE = #{supCode,jdbcType=VARCHAR},
|
|
|
VOYAGE_NO = #{voyageNo,jdbcType=VARCHAR},
|
|
|
IE_DATE = #{ieDate,jdbcType=DATE},
|
|
|
IE_FLAG = #{ieFlag,jdbcType=VARCHAR},
|
|
|
CNT = #{cnt,jdbcType=DECIMAL},
|
|
|
WT = #{wt,jdbcType=DECIMAL},
|
|
|
GOOD_NAME = #{goodName,jdbcType=VARCHAR},
|
|
|
CREATE_DATE = #{createDate,jdbcType=TIMESTAMP},
|
|
|
UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
COP_CODE = #{copCode,jdbcType=VARCHAR},
|
|
|
COP_NAME = #{copName,jdbcType=VARCHAR},
|
|
|
OP_CODE = #{opCode,jdbcType=VARCHAR}
|
|
|
where MAWB_NO = #{mawbNo,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
</mapper> |
|
|
\ No newline at end of file |
...
|
...
|
|