<?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.platform.dao.VendorInterfaceListMapper" >
  <resultMap id="BaseResultMap" type="com.platform.pojo.VendorInterfaceList" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    <id column="ID" property="id" jdbcType="VARCHAR" />
    <result column="VENDOR_ID" property="vendorId" jdbcType="VARCHAR" />
    <result column="VENDOR_CODE" property="vendorCode" jdbcType="VARCHAR" />
    <result column="INTERFACE_ID" property="interfaceId" jdbcType="VARCHAR" />
    <result column="INTERFACE_CODE" property="interfaceCode" jdbcType="VARCHAR" />
    <result column="AUTHORISE_FLAG" property="authoriseFlag" jdbcType="DECIMAL" />
  </resultMap>
  <sql id="Example_Where_Clause" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    <where >
      <foreach collection="oredCriteria" item="criteria" separator="or" >
        <if test="criteria.valid" >
          <trim prefix="(" suffix=")" prefixOverrides="and" >
            <foreach collection="criteria.criteria" item="criterion" >
              <choose >
                <when test="criterion.noValue" >
                  and ${criterion.condition}
                </when>
                <when test="criterion.singleValue" >
                  and ${criterion.condition} #{criterion.value}
                </when>
                <when test="criterion.betweenValue" >
                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
                </when>
                <when test="criterion.listValue" >
                  and ${criterion.condition}
                  <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
                    #{listItem}
                  </foreach>
                </when>
              </choose>
            </foreach>
          </trim>
        </if>
      </foreach>
    </where>
  </sql>
  <sql id="Update_By_Example_Where_Clause" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    <where >
      <foreach collection="example.oredCriteria" item="criteria" separator="or" >
        <if test="criteria.valid" >
          <trim prefix="(" suffix=")" prefixOverrides="and" >
            <foreach collection="criteria.criteria" item="criterion" >
              <choose >
                <when test="criterion.noValue" >
                  and ${criterion.condition}
                </when>
                <when test="criterion.singleValue" >
                  and ${criterion.condition} #{criterion.value}
                </when>
                <when test="criterion.betweenValue" >
                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
                </when>
                <when test="criterion.listValue" >
                  and ${criterion.condition}
                  <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
                    #{listItem}
                  </foreach>
                </when>
              </choose>
            </foreach>
          </trim>
        </if>
      </foreach>
    </where>
  </sql>
  <sql id="Base_Column_List" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    ID, VENDOR_ID, VENDOR_CODE, INTERFACE_ID, INTERFACE_CODE, AUTHORISE_FLAG
  </sql>
  <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.platform.pojo.VendorInterfaceListExample" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    select
    <if test="distinct" >
      distinct
    </if>
    <include refid="Base_Column_List" />
    from VENDOR_INTERFACE_LIST
    <if test="_parameter != null" >
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null" >
      order by ${orderByClause}
    </if>
  </select>
  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    select 
    <include refid="Base_Column_List" />
    from VENDOR_INTERFACE_LIST
    where ID = #{id,jdbcType=VARCHAR}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    delete from VENDOR_INTERFACE_LIST
    where ID = #{id,jdbcType=VARCHAR}
  </delete>
  <delete id="deleteByExample" parameterType="com.platform.pojo.VendorInterfaceListExample" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    delete from VENDOR_INTERFACE_LIST
    <if test="_parameter != null" >
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
  <insert id="insert" parameterType="com.platform.pojo.VendorInterfaceList" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into VENDOR_INTERFACE_LIST (ID, VENDOR_ID, VENDOR_CODE, 
      INTERFACE_ID, INTERFACE_CODE, AUTHORISE_FLAG
      )
    values (#{id,jdbcType=VARCHAR}, #{vendorId,jdbcType=VARCHAR}, #{vendorCode,jdbcType=VARCHAR}, 
      #{interfaceId,jdbcType=VARCHAR}, #{interfaceCode,jdbcType=VARCHAR}, #{authoriseFlag,jdbcType=DECIMAL}
      )
  </insert>
  <insert id="insertSelective" useGeneratedKeys="true" keyProperty="id" parameterType="com.platform.pojo.VendorInterfaceList" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into VENDOR_INTERFACE_LIST
    <trim prefix="(" suffix=")" suffixOverrides="," >
      <if test="id != null" >
        ID,
      </if>
      <if test="vendorId != null" >
        VENDOR_ID,
      </if>
      <if test="vendorCode != null" >
        VENDOR_CODE,
      </if>
      <if test="interfaceId != null" >
        INTERFACE_ID,
      </if>
      <if test="interfaceCode != null" >
        INTERFACE_CODE,
      </if>
      <if test="authoriseFlag != null" >
        AUTHORISE_FLAG,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides="," >
      <if test="id != null" >
        #{id,jdbcType=VARCHAR},
      </if>
      <if test="vendorId != null" >
        #{vendorId,jdbcType=VARCHAR},
      </if>
      <if test="vendorCode != null" >
        #{vendorCode,jdbcType=VARCHAR},
      </if>
      <if test="interfaceId != null" >
        #{interfaceId,jdbcType=VARCHAR},
      </if>
      <if test="interfaceCode != null" >
        #{interfaceCode,jdbcType=VARCHAR},
      </if>
      <if test="authoriseFlag != null" >
        #{authoriseFlag,jdbcType=DECIMAL},
      </if>
    </trim>
  </insert>
  <select id="countByExample" parameterType="com.platform.pojo.VendorInterfaceListExample" resultType="java.lang.Integer" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    select count(*) from VENDOR_INTERFACE_LIST
    <if test="_parameter != null" >
      <include refid="Example_Where_Clause" />
    </if>
  </select>
  <update id="updateByExampleSelective" parameterType="map" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update VENDOR_INTERFACE_LIST
    <set >
      <if test="record.id != null" >
        ID = #{record.id,jdbcType=VARCHAR},
      </if>
      <if test="record.vendorId != null" >
        VENDOR_ID = #{record.vendorId,jdbcType=VARCHAR},
      </if>
      <if test="record.vendorCode != null" >
        VENDOR_CODE = #{record.vendorCode,jdbcType=VARCHAR},
      </if>
      <if test="record.interfaceId != null" >
        INTERFACE_ID = #{record.interfaceId,jdbcType=VARCHAR},
      </if>
      <if test="record.interfaceCode != null" >
        INTERFACE_CODE = #{record.interfaceCode,jdbcType=VARCHAR},
      </if>
      <if test="record.authoriseFlag != null" >
        AUTHORISE_FLAG = #{record.authoriseFlag,jdbcType=DECIMAL},
      </if>
    </set>
    <if test="_parameter != null" >
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByExample" parameterType="map" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update VENDOR_INTERFACE_LIST
    set ID = #{record.id,jdbcType=VARCHAR},
      VENDOR_ID = #{record.vendorId,jdbcType=VARCHAR},
      VENDOR_CODE = #{record.vendorCode,jdbcType=VARCHAR},
      INTERFACE_ID = #{record.interfaceId,jdbcType=VARCHAR},
      INTERFACE_CODE = #{record.interfaceCode,jdbcType=VARCHAR},
      AUTHORISE_FLAG = #{record.authoriseFlag,jdbcType=DECIMAL}
    <if test="_parameter != null" >
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByPrimaryKeySelective" parameterType="com.platform.pojo.VendorInterfaceList" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update VENDOR_INTERFACE_LIST
    <set >
      <if test="vendorId != null" >
        VENDOR_ID = #{vendorId,jdbcType=VARCHAR},
      </if>
      <if test="vendorCode != null" >
        VENDOR_CODE = #{vendorCode,jdbcType=VARCHAR},
      </if>
      <if test="interfaceId != null" >
        INTERFACE_ID = #{interfaceId,jdbcType=VARCHAR},
      </if>
      <if test="interfaceCode != null" >
        INTERFACE_CODE = #{interfaceCode,jdbcType=VARCHAR},
      </if>
      <if test="authoriseFlag != null" >
        AUTHORISE_FLAG = #{authoriseFlag,jdbcType=DECIMAL},
      </if>
    </set>
    where ID = #{id,jdbcType=VARCHAR}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.platform.pojo.VendorInterfaceList" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update VENDOR_INTERFACE_LIST
    set VENDOR_ID = #{vendorId,jdbcType=VARCHAR},
      VENDOR_CODE = #{vendorCode,jdbcType=VARCHAR},
      INTERFACE_ID = #{interfaceId,jdbcType=VARCHAR},
      INTERFACE_CODE = #{interfaceCode,jdbcType=VARCHAR},
      AUTHORISE_FLAG = #{authoriseFlag,jdbcType=DECIMAL}
    where ID = #{id,jdbcType=VARCHAR}
  </update>
</mapper>