ENTERCANCCELMapper.xml 8.1 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.ENTERCANCCELMapper">
  <resultMap id="BaseResultMap" type="com.sy.model.ENTERCANCCEL">
    <id column="ID" jdbcType="VARCHAR" property="id" />
    <result column="VENAME" jdbcType="VARCHAR" property="vename" />
    <result column="VE_COMPANY_NAME" jdbcType="VARCHAR" property="veCompanyName" />
    <result column="AGENTNAME" jdbcType="VARCHAR" property="agentname" />
    <result column="BUSINESSTYPE" jdbcType="VARCHAR" property="businesstype" />
    <result column="MANIFEST" jdbcType="VARCHAR" property="manifest" />
    <result column="WEIGHT" jdbcType="DOUBLE" property="weight" />
    <result column="GROSSWT" jdbcType="DOUBLE" property="grosswt" />
    <result column="GOODNAME" jdbcType="VARCHAR" property="goodname" />
    <result column="STARTPORT" jdbcType="VARCHAR" property="startport" />
    <result column="ENDPORT" jdbcType="VARCHAR" property="endport" />
    <result column="ISFREEZE" jdbcType="VARCHAR" property="isfreeze" />
    <result column="CREATE_BY" jdbcType="VARCHAR" property="createBy" />
    <result column="CREATE_TIME" jdbcType="TIMESTAMP" property="createTime" />
    <result column="UPDATE_BY" jdbcType="VARCHAR" property="updateBy" />
    <result column="UPDATE_TIME" jdbcType="TIMESTAMP" property="updateTime" />
  </resultMap>
  <sql id="Base_Column_List">
    ID, VENAME, VE_COMPANY_NAME, AGENTNAME, BUSINESSTYPE, MANIFEST, WEIGHT, GROSSWT, 
    GOODNAME, STARTPORT, ENDPORT, ISFREEZE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME
  </sql>
  <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
    select 
    <include refid="Base_Column_List" />
    from entercancel
    where ID = #{id,jdbcType=VARCHAR}
  </select>
  <select id="selectByManifest" parameterType="java.lang.String" resultMap="BaseResultMap">
    select
    <include refid="Base_Column_List" />
    from entercancel
    where MANIFEST = #{manifest,jdbcType=VARCHAR}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
    delete from entercancel
    where ID = #{id,jdbcType=VARCHAR}
  </delete>
  <insert id="insert" parameterType="com.sy.model.ENTERCANCCEL">
    insert into entercancel (ID, VENAME, VE_COMPANY_NAME, 
      AGENTNAME, BUSINESSTYPE, MANIFEST, 
      WEIGHT, GROSSWT, GOODNAME, 
      STARTPORT, ENDPORT, ISFREEZE, 
      CREATE_BY, CREATE_TIME, UPDATE_BY, 
      UPDATE_TIME)
    values (#{id,jdbcType=VARCHAR}, #{vename,jdbcType=VARCHAR}, #{veCompanyName,jdbcType=VARCHAR}, 
      #{agentname,jdbcType=VARCHAR}, #{businesstype,jdbcType=VARCHAR}, #{manifest,jdbcType=VARCHAR}, 
      #{weight,jdbcType=DOUBLE}, #{grosswt,jdbcType=DOUBLE}, #{goodname,jdbcType=VARCHAR}, 
      #{startport,jdbcType=VARCHAR}, #{endport,jdbcType=VARCHAR}, #{isfreeze,jdbcType=VARCHAR}, 
      #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, 
      #{updateTime,jdbcType=TIMESTAMP})
  </insert>
  <insert id="insertSelective" parameterType="com.sy.model.ENTERCANCCEL">
    insert into entercancel
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        ID,
      </if>
      <if test="vename != null">
        VENAME,
      </if>
      <if test="veCompanyName != null">
        VE_COMPANY_NAME,
      </if>
      <if test="agentname != null">
        AGENTNAME,
      </if>
      <if test="businesstype != null">
        BUSINESSTYPE,
      </if>
      <if test="manifest != null">
        MANIFEST,
      </if>
      <if test="weight != null">
        WEIGHT,
      </if>
      <if test="grosswt != null">
        GROSSWT,
      </if>
      <if test="goodname != null">
        GOODNAME,
      </if>
      <if test="startport != null">
        STARTPORT,
      </if>
      <if test="endport != null">
        ENDPORT,
      </if>
      <if test="isfreeze != null">
        ISFREEZE,
      </if>
      <if test="createBy != null">
        CREATE_BY,
      </if>
      <if test="createTime != null">
        CREATE_TIME,
      </if>
      <if test="updateBy != null">
        UPDATE_BY,
      </if>
      <if test="updateTime != null">
        UPDATE_TIME,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="id != null">
        #{id,jdbcType=VARCHAR},
      </if>
      <if test="vename != null">
        #{vename,jdbcType=VARCHAR},
      </if>
      <if test="veCompanyName != null">
        #{veCompanyName,jdbcType=VARCHAR},
      </if>
      <if test="agentname != null">
        #{agentname,jdbcType=VARCHAR},
      </if>
      <if test="businesstype != null">
        #{businesstype,jdbcType=VARCHAR},
      </if>
      <if test="manifest != null">
        #{manifest,jdbcType=VARCHAR},
      </if>
      <if test="weight != null">
        #{weight,jdbcType=DOUBLE},
      </if>
      <if test="grosswt != null">
        #{grosswt,jdbcType=DOUBLE},
      </if>
      <if test="goodname != null">
        #{goodname,jdbcType=VARCHAR},
      </if>
      <if test="startport != null">
        #{startport,jdbcType=VARCHAR},
      </if>
      <if test="endport != null">
        #{endport,jdbcType=VARCHAR},
      </if>
      <if test="isfreeze != null">
        #{isfreeze,jdbcType=VARCHAR},
      </if>
      <if test="createBy != null">
        #{createBy,jdbcType=VARCHAR},
      </if>
      <if test="createTime != null">
        #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="updateBy != null">
        #{updateBy,jdbcType=VARCHAR},
      </if>
      <if test="updateTime != null">
        #{updateTime,jdbcType=TIMESTAMP},
      </if>
    </trim>
  </insert>
  <update id="updateByPrimaryKeySelective" parameterType="com.sy.model.ENTERCANCCEL">
    update entercancel
    <set>
      <if test="vename != null">
        VENAME = #{vename,jdbcType=VARCHAR},
      </if>
      <if test="veCompanyName != null">
        VE_COMPANY_NAME = #{veCompanyName,jdbcType=VARCHAR},
      </if>
      <if test="agentname != null">
        AGENTNAME = #{agentname,jdbcType=VARCHAR},
      </if>
      <if test="businesstype != null">
        BUSINESSTYPE = #{businesstype,jdbcType=VARCHAR},
      </if>
      <if test="manifest != null">
        MANIFEST = #{manifest,jdbcType=VARCHAR},
      </if>
      <if test="weight != null">
        WEIGHT = #{weight,jdbcType=DOUBLE},
      </if>
      <if test="grosswt != null">
        GROSSWT = #{grosswt,jdbcType=DOUBLE},
      </if>
      <if test="goodname != null">
        GOODNAME = #{goodname,jdbcType=VARCHAR},
      </if>
      <if test="startport != null">
        STARTPORT = #{startport,jdbcType=VARCHAR},
      </if>
      <if test="endport != null">
        ENDPORT = #{endport,jdbcType=VARCHAR},
      </if>
      <if test="isfreeze != null">
        ISFREEZE = #{isfreeze,jdbcType=VARCHAR},
      </if>
      <if test="createBy != null">
        CREATE_BY = #{createBy,jdbcType=VARCHAR},
      </if>
      <if test="createTime != null">
        CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="updateBy != null">
        UPDATE_BY = #{updateBy,jdbcType=VARCHAR},
      </if>
      <if test="updateTime != null">
        UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
      </if>
    </set>
    where ID = #{id,jdbcType=VARCHAR}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.sy.model.ENTERCANCCEL">
    update entercancel
    set VENAME = #{vename,jdbcType=VARCHAR},
      VE_COMPANY_NAME = #{veCompanyName,jdbcType=VARCHAR},
      AGENTNAME = #{agentname,jdbcType=VARCHAR},
      BUSINESSTYPE = #{businesstype,jdbcType=VARCHAR},
      MANIFEST = #{manifest,jdbcType=VARCHAR},
      WEIGHT = #{weight,jdbcType=DOUBLE},
      GROSSWT = #{grosswt,jdbcType=DOUBLE},
      GOODNAME = #{goodname,jdbcType=VARCHAR},
      STARTPORT = #{startport,jdbcType=VARCHAR},
      ENDPORT = #{endport,jdbcType=VARCHAR},
      ISFREEZE = #{isfreeze,jdbcType=VARCHAR},
      CREATE_BY = #{createBy,jdbcType=VARCHAR},
      CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
      UPDATE_BY = #{updateBy,jdbcType=VARCHAR},
      UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP}
    where ID = #{id,jdbcType=VARCHAR}
  </update>
</mapper>