v_express_billnoMapper.xml 7.8 KB
<?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.v_express_billnoMapper">
  <resultMap id="BaseResultMap" type="com.sy.model.v_express_billno">
    <id column="HAWB_GUID" jdbcType="VARCHAR" property="hawbGuid" />
    <result column="MAWB_GUID" jdbcType="VARCHAR" property="mawbGuid" />
    <result column="MAWB_NO" jdbcType="VARCHAR" property="mawbNo" />
    <result column="HAWB_NO" jdbcType="VARCHAR" property="hawbNo" />
    <result column="BILL_NO" jdbcType="VARCHAR" property="billNo" />
    <result column="CAL_TYPE" jdbcType="VARCHAR" property="calType" />
    <result column="HAWB_PACKNO" jdbcType="DECIMAL" property="hawbPackno" />
    <result column="HAWB_GROSSWT" jdbcType="DECIMAL" property="hawbGrosswt" />
    <result column="STATUS" jdbcType="VARCHAR" property="status" />
    <result column="APPROVE_PERSON" jdbcType="VARCHAR" property="approvePerson" />
    <result column="APPROVE_DATE" jdbcType="TIMESTAMP" property="approveDate" />
    <result column="CREATE_DATE" jdbcType="TIMESTAMP" property="createDate" />
    <result column="LAST_UPDATE_TIME" jdbcType="TIMESTAMP" property="lastUpdateTime" />
    <result column="AREA_CODE" jdbcType="VARCHAR" property="areaCode" />
    <result column="CUSTOM_CODE" jdbcType="VARCHAR" property="customCode" />
  </resultMap>
  <sql id="Base_Column_List">
    HAWB_GUID, MAWB_GUID, MAWB_NO, HAWB_NO, BILL_NO, CAL_TYPE, HAWB_PACKNO, HAWB_GROSSWT, 
    STATUS, APPROVE_PERSON, APPROVE_DATE, CREATE_DATE, LAST_UPDATE_TIME, AREA_CODE, CUSTOM_CODE
  </sql>
  <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
    select 
    <include refid="Base_Column_List" />
    from v_express_billno
    where HAWB_GUID = #{hawbGuid,jdbcType=VARCHAR}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
    delete from v_express_billno
    where HAWB_GUID = #{hawbGuid,jdbcType=VARCHAR}
  </delete>
  <insert id="insert" parameterType="com.sy.model.v_express_billno">
    insert into v_express_billno (HAWB_GUID, MAWB_GUID, MAWB_NO, 
      HAWB_NO, BILL_NO, CAL_TYPE, 
      HAWB_PACKNO, HAWB_GROSSWT, STATUS, 
      APPROVE_PERSON, APPROVE_DATE, CREATE_DATE, 
      LAST_UPDATE_TIME, AREA_CODE, CUSTOM_CODE
      )
    values (#{hawbGuid,jdbcType=VARCHAR}, #{mawbGuid,jdbcType=VARCHAR}, #{mawbNo,jdbcType=VARCHAR}, 
      #{hawbNo,jdbcType=VARCHAR}, #{billNo,jdbcType=VARCHAR}, #{calType,jdbcType=VARCHAR}, 
      #{hawbPackno,jdbcType=DECIMAL}, #{hawbGrosswt,jdbcType=DECIMAL}, #{status,jdbcType=VARCHAR}, 
      #{approvePerson,jdbcType=VARCHAR}, #{approveDate,jdbcType=TIMESTAMP}, #{createDate,jdbcType=TIMESTAMP}, 
      #{lastUpdateTime,jdbcType=TIMESTAMP}, #{areaCode,jdbcType=VARCHAR}, #{customCode,jdbcType=VARCHAR}
      )
  </insert>
  <insert id="insertSelective" parameterType="com.sy.model.v_express_billno">
    insert into v_express_billno
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="hawbGuid != null">
        HAWB_GUID,
      </if>
      <if test="mawbGuid != null">
        MAWB_GUID,
      </if>
      <if test="mawbNo != null">
        MAWB_NO,
      </if>
      <if test="hawbNo != null">
        HAWB_NO,
      </if>
      <if test="billNo != null">
        BILL_NO,
      </if>
      <if test="calType != null">
        CAL_TYPE,
      </if>
      <if test="hawbPackno != null">
        HAWB_PACKNO,
      </if>
      <if test="hawbGrosswt != null">
        HAWB_GROSSWT,
      </if>
      <if test="status != null">
        STATUS,
      </if>
      <if test="approvePerson != null">
        APPROVE_PERSON,
      </if>
      <if test="approveDate != null">
        APPROVE_DATE,
      </if>
      <if test="createDate != null">
        CREATE_DATE,
      </if>
      <if test="lastUpdateTime != null">
        LAST_UPDATE_TIME,
      </if>
      <if test="areaCode != null">
        AREA_CODE,
      </if>
      <if test="customCode != null">
        CUSTOM_CODE,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="hawbGuid != null">
        #{hawbGuid,jdbcType=VARCHAR},
      </if>
      <if test="mawbGuid != null">
        #{mawbGuid,jdbcType=VARCHAR},
      </if>
      <if test="mawbNo != null">
        #{mawbNo,jdbcType=VARCHAR},
      </if>
      <if test="hawbNo != null">
        #{hawbNo,jdbcType=VARCHAR},
      </if>
      <if test="billNo != null">
        #{billNo,jdbcType=VARCHAR},
      </if>
      <if test="calType != null">
        #{calType,jdbcType=VARCHAR},
      </if>
      <if test="hawbPackno != null">
        #{hawbPackno,jdbcType=DECIMAL},
      </if>
      <if test="hawbGrosswt != null">
        #{hawbGrosswt,jdbcType=DECIMAL},
      </if>
      <if test="status != null">
        #{status,jdbcType=VARCHAR},
      </if>
      <if test="approvePerson != null">
        #{approvePerson,jdbcType=VARCHAR},
      </if>
      <if test="approveDate != null">
        #{approveDate,jdbcType=TIMESTAMP},
      </if>
      <if test="createDate != null">
        #{createDate,jdbcType=TIMESTAMP},
      </if>
      <if test="lastUpdateTime != null">
        #{lastUpdateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="areaCode != null">
        #{areaCode,jdbcType=VARCHAR},
      </if>
      <if test="customCode != null">
        #{customCode,jdbcType=VARCHAR},
      </if>
    </trim>
  </insert>
  <update id="updateByPrimaryKeySelective" parameterType="com.sy.model.v_express_billno">
    update v_express_billno
    <set>
      <if test="mawbGuid != null">
        MAWB_GUID = #{mawbGuid,jdbcType=VARCHAR},
      </if>
      <if test="mawbNo != null">
        MAWB_NO = #{mawbNo,jdbcType=VARCHAR},
      </if>
      <if test="hawbNo != null">
        HAWB_NO = #{hawbNo,jdbcType=VARCHAR},
      </if>
      <if test="billNo != null">
        BILL_NO = #{billNo,jdbcType=VARCHAR},
      </if>
      <if test="calType != null">
        CAL_TYPE = #{calType,jdbcType=VARCHAR},
      </if>
      <if test="hawbPackno != null">
        HAWB_PACKNO = #{hawbPackno,jdbcType=DECIMAL},
      </if>
      <if test="hawbGrosswt != null">
        HAWB_GROSSWT = #{hawbGrosswt,jdbcType=DECIMAL},
      </if>
      <if test="status != null">
        STATUS = #{status,jdbcType=VARCHAR},
      </if>
      <if test="approvePerson != null">
        APPROVE_PERSON = #{approvePerson,jdbcType=VARCHAR},
      </if>
      <if test="approveDate != null">
        APPROVE_DATE = #{approveDate,jdbcType=TIMESTAMP},
      </if>
      <if test="createDate != null">
        CREATE_DATE = #{createDate,jdbcType=TIMESTAMP},
      </if>
      <if test="lastUpdateTime != null">
        LAST_UPDATE_TIME = #{lastUpdateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="areaCode != null">
        AREA_CODE = #{areaCode,jdbcType=VARCHAR},
      </if>
      <if test="customCode != null">
        CUSTOM_CODE = #{customCode,jdbcType=VARCHAR},
      </if>
    </set>
    where HAWB_GUID = #{hawbGuid,jdbcType=VARCHAR}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.sy.model.v_express_billno">
    update v_express_billno
    set MAWB_GUID = #{mawbGuid,jdbcType=VARCHAR},
      MAWB_NO = #{mawbNo,jdbcType=VARCHAR},
      HAWB_NO = #{hawbNo,jdbcType=VARCHAR},
      BILL_NO = #{billNo,jdbcType=VARCHAR},
      CAL_TYPE = #{calType,jdbcType=VARCHAR},
      HAWB_PACKNO = #{hawbPackno,jdbcType=DECIMAL},
      HAWB_GROSSWT = #{hawbGrosswt,jdbcType=DECIMAL},
      STATUS = #{status,jdbcType=VARCHAR},
      APPROVE_PERSON = #{approvePerson,jdbcType=VARCHAR},
      APPROVE_DATE = #{approveDate,jdbcType=TIMESTAMP},
      CREATE_DATE = #{createDate,jdbcType=TIMESTAMP},
      LAST_UPDATE_TIME = #{lastUpdateTime,jdbcType=TIMESTAMP},
      AREA_CODE = #{areaCode,jdbcType=VARCHAR},
      CUSTOM_CODE = #{customCode,jdbcType=VARCHAR}
    where HAWB_GUID = #{hawbGuid,jdbcType=VARCHAR}
  </update>
</mapper>