T_TXD_FWBPARTYMapper.xml 6.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.example.demo.mapper.T_TXD_FWBPARTYMapper" >
  <resultMap id="BaseResultMap" type="com.example.demo.model.T_TXD_FWBPARTY" >
    <id column="FID" property="fid" jdbcType="DECIMAL" />
    <result column="PRIMARYID" property="primaryid" jdbcType="VARCHAR" />
    <result column="NAME" property="name" jdbcType="VARCHAR" />
    <result column="ACCOUNTID" property="accountid" jdbcType="VARCHAR" />
    <result column="ROLECODE" property="rolecode" jdbcType="VARCHAR" />
    <result column="ROLE" property="role" jdbcType="VARCHAR" />
    <result column="CITYNAME" property="cityname" jdbcType="VARCHAR" />
    <result column="COUNTRYID" property="countryid" jdbcType="VARCHAR" />
    <result column="SPECIFIEDADDRESSLOCATION" property="specifiedaddresslocation" jdbcType="VARCHAR" />
    <result column="SPECIFIEDCARGOAGENTLOCATION" property="specifiedcargoagentlocation" jdbcType="VARCHAR" />
    <result column="DEFINEDTRADECONTACT" property="definedtradecontact" jdbcType="VARCHAR" />
    <result column="TXD_FWB_ID" property="txdFwbId" jdbcType="DECIMAL" />
  </resultMap>
  <sql id="Base_Column_List" >
    FID, PRIMARYID, NAME, ACCOUNTID, ROLECODE, ROLE, CITYNAME, COUNTRYID, SPECIFIEDADDRESSLOCATION, 
    SPECIFIEDCARGOAGENTLOCATION, DEFINEDTRADECONTACT, TXD_FWB_ID
  </sql>
  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.math.BigDecimal" >
    select 
    <include refid="Base_Column_List" />
    from T_TXD_FWBPARTY
    where FID = #{fid,jdbcType=DECIMAL}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.math.BigDecimal" >
    delete from T_TXD_FWBPARTY
    where FID = #{fid,jdbcType=DECIMAL}
  </delete>
  <insert id="insert" parameterType="com.example.demo.model.T_TXD_FWBPARTY" >
    insert into T_TXD_FWBPARTY (FID, PRIMARYID, NAME, 
      ACCOUNTID, ROLECODE, ROLE, 
      CITYNAME, COUNTRYID, SPECIFIEDADDRESSLOCATION, 
      SPECIFIEDCARGOAGENTLOCATION, DEFINEDTRADECONTACT, 
      TXD_FWB_ID)
    values (#{fid,jdbcType=DECIMAL}, #{primaryid,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, 
      #{accountid,jdbcType=VARCHAR}, #{rolecode,jdbcType=VARCHAR}, #{role,jdbcType=VARCHAR}, 
      #{cityname,jdbcType=VARCHAR}, #{countryid,jdbcType=VARCHAR}, #{specifiedaddresslocation,jdbcType=VARCHAR}, 
      #{specifiedcargoagentlocation,jdbcType=VARCHAR}, #{definedtradecontact,jdbcType=VARCHAR}, 
      #{txdFwbId,jdbcType=DECIMAL})
  </insert>
  <insert id="insertSelective" parameterType="com.example.demo.model.T_TXD_FWBPARTY" >
    insert into T_TXD_FWBPARTY
    <trim prefix="(" suffix=")" suffixOverrides="," >
      <if test="fid != null" >
        FID,
      </if>
      <if test="primaryid != null" >
        PRIMARYID,
      </if>
      <if test="name != null" >
        NAME,
      </if>
      <if test="accountid != null" >
        ACCOUNTID,
      </if>
      <if test="rolecode != null" >
        ROLECODE,
      </if>
      <if test="role != null" >
        ROLE,
      </if>
      <if test="cityname != null" >
        CITYNAME,
      </if>
      <if test="countryid != null" >
        COUNTRYID,
      </if>
      <if test="specifiedaddresslocation != null" >
        SPECIFIEDADDRESSLOCATION,
      </if>
      <if test="specifiedcargoagentlocation != null" >
        SPECIFIEDCARGOAGENTLOCATION,
      </if>
      <if test="definedtradecontact != null" >
        DEFINEDTRADECONTACT,
      </if>
      <if test="txdFwbId != null" >
        TXD_FWB_ID,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides="," >
      <if test="fid != null" >
        #{fid,jdbcType=DECIMAL},
      </if>
      <if test="primaryid != null" >
        #{primaryid,jdbcType=VARCHAR},
      </if>
      <if test="name != null" >
        #{name,jdbcType=VARCHAR},
      </if>
      <if test="accountid != null" >
        #{accountid,jdbcType=VARCHAR},
      </if>
      <if test="rolecode != null" >
        #{rolecode,jdbcType=VARCHAR},
      </if>
      <if test="role != null" >
        #{role,jdbcType=VARCHAR},
      </if>
      <if test="cityname != null" >
        #{cityname,jdbcType=VARCHAR},
      </if>
      <if test="countryid != null" >
        #{countryid,jdbcType=VARCHAR},
      </if>
      <if test="specifiedaddresslocation != null" >
        #{specifiedaddresslocation,jdbcType=VARCHAR},
      </if>
      <if test="specifiedcargoagentlocation != null" >
        #{specifiedcargoagentlocation,jdbcType=VARCHAR},
      </if>
      <if test="definedtradecontact != null" >
        #{definedtradecontact,jdbcType=VARCHAR},
      </if>
      <if test="txdFwbId != null" >
        #{txdFwbId,jdbcType=DECIMAL},
      </if>
    </trim>
  </insert>
  <update id="updateByPrimaryKeySelective" parameterType="com.example.demo.model.T_TXD_FWBPARTY" >
    update T_TXD_FWBPARTY
    <set >
      <if test="primaryid != null" >
        PRIMARYID = #{primaryid,jdbcType=VARCHAR},
      </if>
      <if test="name != null" >
        NAME = #{name,jdbcType=VARCHAR},
      </if>
      <if test="accountid != null" >
        ACCOUNTID = #{accountid,jdbcType=VARCHAR},
      </if>
      <if test="rolecode != null" >
        ROLECODE = #{rolecode,jdbcType=VARCHAR},
      </if>
      <if test="role != null" >
        ROLE = #{role,jdbcType=VARCHAR},
      </if>
      <if test="cityname != null" >
        CITYNAME = #{cityname,jdbcType=VARCHAR},
      </if>
      <if test="countryid != null" >
        COUNTRYID = #{countryid,jdbcType=VARCHAR},
      </if>
      <if test="specifiedaddresslocation != null" >
        SPECIFIEDADDRESSLOCATION = #{specifiedaddresslocation,jdbcType=VARCHAR},
      </if>
      <if test="specifiedcargoagentlocation != null" >
        SPECIFIEDCARGOAGENTLOCATION = #{specifiedcargoagentlocation,jdbcType=VARCHAR},
      </if>
      <if test="definedtradecontact != null" >
        DEFINEDTRADECONTACT = #{definedtradecontact,jdbcType=VARCHAR},
      </if>
      <if test="txdFwbId != null" >
        TXD_FWB_ID = #{txdFwbId,jdbcType=DECIMAL},
      </if>
    </set>
    where FID = #{fid,jdbcType=DECIMAL}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.example.demo.model.T_TXD_FWBPARTY" >
    update T_TXD_FWBPARTY
    set PRIMARYID = #{primaryid,jdbcType=VARCHAR},
      NAME = #{name,jdbcType=VARCHAR},
      ACCOUNTID = #{accountid,jdbcType=VARCHAR},
      ROLECODE = #{rolecode,jdbcType=VARCHAR},
      ROLE = #{role,jdbcType=VARCHAR},
      CITYNAME = #{cityname,jdbcType=VARCHAR},
      COUNTRYID = #{countryid,jdbcType=VARCHAR},
      SPECIFIEDADDRESSLOCATION = #{specifiedaddresslocation,jdbcType=VARCHAR},
      SPECIFIEDCARGOAGENTLOCATION = #{specifiedcargoagentlocation,jdbcType=VARCHAR},
      DEFINEDTRADECONTACT = #{definedtradecontact,jdbcType=VARCHAR},
      TXD_FWB_ID = #{txdFwbId,jdbcType=DECIMAL}
    where FID = #{fid,jdbcType=DECIMAL}
  </update>
</mapper>