<?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.bailuntec.mapper.DcAutoJitTagMapper">
  <resultMap id="BaseResultMap" type="com.bailuntec.domain.entity.DcAutoJitTag">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    <id column="id" jdbcType="INTEGER" property="id" />
    <result column="tag_name" jdbcType="VARCHAR" property="tagName" />
    <result column="is_gt_7" jdbcType="INTEGER" property="isGt7" />
    <result column="enable_7" jdbcType="INTEGER" property="enable7" />
    <result column="quantity_sales7" jdbcType="DECIMAL" property="quantitySales7" />
    <result column="is_gt_14" jdbcType="INTEGER" property="isGt14" />
    <result column="enable_14" jdbcType="INTEGER" property="enable14" />
    <result column="quantity_sales14" jdbcType="DECIMAL" property="quantitySales14" />
    <result column="is_gt_30" jdbcType="INTEGER" property="isGt30" />
    <result column="enable_30" jdbcType="INTEGER" property="enable30" />
    <result column="quantity_sales30" jdbcType="DECIMAL" property="quantitySales30" />
    <result column="quantity_safe_inventory" jdbcType="DECIMAL" property="quantitySafeInventory" />
    <result column="level" jdbcType="INTEGER" property="level" />
    <result column="is_eliminate" jdbcType="INTEGER" property="isEliminate" />
    <result column="gmt_update" jdbcType="TIMESTAMP" property="gmtUpdate" />
    <result column="group_id" jdbcType="INTEGER" property="groupId" />
    <result column="buyer_name" jdbcType="VARCHAR" property="buyerName" />
  </resultMap>
  <sql id="Example_Where_Clause">
    <!--
      WARNING - @mbg.generated
      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="(" prefixOverrides="and" suffix=")">
            <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 close=")" collection="criterion.value" item="listItem" open="(" separator=",">
                    #{listItem}
                  </foreach>
                </when>
              </choose>
            </foreach>
          </trim>
        </if>
      </foreach>
    </where>
  </sql>
  <sql id="Update_By_Example_Where_Clause">
    <!--
      WARNING - @mbg.generated
      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="(" prefixOverrides="and" suffix=")">
            <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 close=")" collection="criterion.value" item="listItem" open="(" separator=",">
                    #{listItem}
                  </foreach>
                </when>
              </choose>
            </foreach>
          </trim>
        </if>
      </foreach>
    </where>
  </sql>
  <sql id="Base_Column_List">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    id, tag_name, is_gt_7, enable_7, quantity_sales7, is_gt_14, enable_14, quantity_sales14, 
    is_gt_30, enable_30, quantity_sales30, quantity_safe_inventory, level, is_eliminate, 
    gmt_update, group_id, buyer_name
  </sql>
  <select id="selectByExample" parameterType="com.bailuntec.domain.example.DcAutoJitTagExample" resultMap="BaseResultMap">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    select
    <if test="distinct">
      distinct
    </if>
    <include refid="Base_Column_List" />
    from dc_auto_jit_tag
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
      order by level asc
    <if test="rows != null">
      <if test="offset != null">
        limit ${offset}, ${rows}
      </if>
      <if test="offset == null">
        limit ${rows}
      </if>
    </if>
  </select>
  <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    select 
    <include refid="Base_Column_List" />
    from dc_auto_jit_tag
    where id = #{id,jdbcType=INTEGER}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    delete from dc_auto_jit_tag
    where id = #{id,jdbcType=INTEGER}
  </delete>
  <delete id="deleteByExample" parameterType="com.bailuntec.domain.example.DcAutoJitTagExample">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    delete from dc_auto_jit_tag
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
  <insert id="insert" parameterType="com.bailuntec.domain.entity.DcAutoJitTag">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into dc_auto_jit_tag (id, tag_name, is_gt_7, 
      enable_7, quantity_sales7, is_gt_14, 
      enable_14, quantity_sales14, is_gt_30, 
      enable_30, quantity_sales30, quantity_safe_inventory, 
      level, is_eliminate, gmt_update, 
      group_id, buyer_name)
    values (#{id,jdbcType=INTEGER}, #{tagName,jdbcType=VARCHAR}, #{isGt7,jdbcType=INTEGER}, 
      #{enable7,jdbcType=INTEGER}, #{quantitySales7,jdbcType=DECIMAL}, #{isGt14,jdbcType=INTEGER}, 
      #{enable14,jdbcType=INTEGER}, #{quantitySales14,jdbcType=DECIMAL}, #{isGt30,jdbcType=INTEGER}, 
      #{enable30,jdbcType=INTEGER}, #{quantitySales30,jdbcType=DECIMAL}, #{quantitySafeInventory,jdbcType=DECIMAL}, 
      #{level,jdbcType=INTEGER}, #{isEliminate,jdbcType=INTEGER}, #{gmtUpdate,jdbcType=TIMESTAMP}, 
      #{groupId,jdbcType=INTEGER}, #{buyerName,jdbcType=VARCHAR})
  </insert>
  <insert id="insertSelective" parameterType="com.bailuntec.domain.entity.DcAutoJitTag">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into dc_auto_jit_tag
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        id,
      </if>
      <if test="tagName != null">
        tag_name,
      </if>
      <if test="isGt7 != null">
        is_gt_7,
      </if>
      <if test="enable7 != null">
        enable_7,
      </if>
      <if test="quantitySales7 != null">
        quantity_sales7,
      </if>
      <if test="isGt14 != null">
        is_gt_14,
      </if>
      <if test="enable14 != null">
        enable_14,
      </if>
      <if test="quantitySales14 != null">
        quantity_sales14,
      </if>
      <if test="isGt30 != null">
        is_gt_30,
      </if>
      <if test="enable30 != null">
        enable_30,
      </if>
      <if test="quantitySales30 != null">
        quantity_sales30,
      </if>
      <if test="quantitySafeInventory != null">
        quantity_safe_inventory,
      </if>
      <if test="level != null">
        level,
      </if>
      <if test="isEliminate != null">
        is_eliminate,
      </if>
      <if test="gmtUpdate != null">
        gmt_update,
      </if>
      <if test="groupId != null">
        group_id,
      </if>
      <if test="buyerName != null">
        buyer_name,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="id != null">
        #{id,jdbcType=INTEGER},
      </if>
      <if test="tagName != null">
        #{tagName,jdbcType=VARCHAR},
      </if>
      <if test="isGt7 != null">
        #{isGt7,jdbcType=INTEGER},
      </if>
      <if test="enable7 != null">
        #{enable7,jdbcType=INTEGER},
      </if>
      <if test="quantitySales7 != null">
        #{quantitySales7,jdbcType=DECIMAL},
      </if>
      <if test="isGt14 != null">
        #{isGt14,jdbcType=INTEGER},
      </if>
      <if test="enable14 != null">
        #{enable14,jdbcType=INTEGER},
      </if>
      <if test="quantitySales14 != null">
        #{quantitySales14,jdbcType=DECIMAL},
      </if>
      <if test="isGt30 != null">
        #{isGt30,jdbcType=INTEGER},
      </if>
      <if test="enable30 != null">
        #{enable30,jdbcType=INTEGER},
      </if>
      <if test="quantitySales30 != null">
        #{quantitySales30,jdbcType=DECIMAL},
      </if>
      <if test="quantitySafeInventory != null">
        #{quantitySafeInventory,jdbcType=DECIMAL},
      </if>
      <if test="level != null">
        #{level,jdbcType=INTEGER},
      </if>
      <if test="isEliminate != null">
        #{isEliminate,jdbcType=INTEGER},
      </if>
      <if test="gmtUpdate != null">
        #{gmtUpdate,jdbcType=TIMESTAMP},
      </if>
      <if test="groupId != null">
        #{groupId,jdbcType=INTEGER},
      </if>
      <if test="buyerName != null">
        #{buyerName,jdbcType=VARCHAR},
      </if>
    </trim>
  </insert>
  <select id="countByExample" parameterType="com.bailuntec.domain.example.DcAutoJitTagExample" resultType="java.lang.Long">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    select count(*) from dc_auto_jit_tag
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </select>
  <update id="updateByExampleSelective" parameterType="map">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update dc_auto_jit_tag
    <set>
      <if test="record.id != null">
        id = #{record.id,jdbcType=INTEGER},
      </if>
      <if test="record.tagName != null">
        tag_name = #{record.tagName,jdbcType=VARCHAR},
      </if>
      <if test="record.isGt7 != null">
        is_gt_7 = #{record.isGt7,jdbcType=INTEGER},
      </if>
      <if test="record.enable7 != null">
        enable_7 = #{record.enable7,jdbcType=INTEGER},
      </if>
      <if test="record.quantitySales7 != null">
        quantity_sales7 = #{record.quantitySales7,jdbcType=DECIMAL},
      </if>
      <if test="record.isGt14 != null">
        is_gt_14 = #{record.isGt14,jdbcType=INTEGER},
      </if>
      <if test="record.enable14 != null">
        enable_14 = #{record.enable14,jdbcType=INTEGER},
      </if>
      <if test="record.quantitySales14 != null">
        quantity_sales14 = #{record.quantitySales14,jdbcType=DECIMAL},
      </if>
      <if test="record.isGt30 != null">
        is_gt_30 = #{record.isGt30,jdbcType=INTEGER},
      </if>
      <if test="record.enable30 != null">
        enable_30 = #{record.enable30,jdbcType=INTEGER},
      </if>
      <if test="record.quantitySales30 != null">
        quantity_sales30 = #{record.quantitySales30,jdbcType=DECIMAL},
      </if>
      <if test="record.quantitySafeInventory != null">
        quantity_safe_inventory = #{record.quantitySafeInventory,jdbcType=DECIMAL},
      </if>
      <if test="record.level != null">
        level = #{record.level,jdbcType=INTEGER},
      </if>
      <if test="record.isEliminate != null">
        is_eliminate = #{record.isEliminate,jdbcType=INTEGER},
      </if>
      <if test="record.gmtUpdate != null">
        gmt_update = #{record.gmtUpdate,jdbcType=TIMESTAMP},
      </if>
      <if test="record.groupId != null">
        group_id = #{record.groupId,jdbcType=INTEGER},
      </if>
      <if test="record.buyerName != null">
        buyer_name = #{record.buyerName,jdbcType=VARCHAR},
      </if>
    </set>
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByExample" parameterType="map">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update dc_auto_jit_tag
    set id = #{record.id,jdbcType=INTEGER},
      tag_name = #{record.tagName,jdbcType=VARCHAR},
      is_gt_7 = #{record.isGt7,jdbcType=INTEGER},
      enable_7 = #{record.enable7,jdbcType=INTEGER},
      quantity_sales7 = #{record.quantitySales7,jdbcType=DECIMAL},
      is_gt_14 = #{record.isGt14,jdbcType=INTEGER},
      enable_14 = #{record.enable14,jdbcType=INTEGER},
      quantity_sales14 = #{record.quantitySales14,jdbcType=DECIMAL},
      is_gt_30 = #{record.isGt30,jdbcType=INTEGER},
      enable_30 = #{record.enable30,jdbcType=INTEGER},
      quantity_sales30 = #{record.quantitySales30,jdbcType=DECIMAL},
      quantity_safe_inventory = #{record.quantitySafeInventory,jdbcType=DECIMAL},
      level = #{record.level,jdbcType=INTEGER},
      is_eliminate = #{record.isEliminate,jdbcType=INTEGER},
      gmt_update = #{record.gmtUpdate,jdbcType=TIMESTAMP},
      group_id = #{record.groupId,jdbcType=INTEGER},
      buyer_name = #{record.buyerName,jdbcType=VARCHAR}
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByPrimaryKeySelective" parameterType="com.bailuntec.domain.entity.DcAutoJitTag">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update dc_auto_jit_tag
    <set>
      <if test="tagName != null">
        tag_name = #{tagName,jdbcType=VARCHAR},
      </if>
      <if test="isGt7 != null">
        is_gt_7 = #{isGt7,jdbcType=INTEGER},
      </if>
      <if test="enable7 != null">
        enable_7 = #{enable7,jdbcType=INTEGER},
      </if>
      <if test="quantitySales7 != null">
        quantity_sales7 = #{quantitySales7,jdbcType=DECIMAL},
      </if>
      <if test="isGt14 != null">
        is_gt_14 = #{isGt14,jdbcType=INTEGER},
      </if>
      <if test="enable14 != null">
        enable_14 = #{enable14,jdbcType=INTEGER},
      </if>
      <if test="quantitySales14 != null">
        quantity_sales14 = #{quantitySales14,jdbcType=DECIMAL},
      </if>
      <if test="isGt30 != null">
        is_gt_30 = #{isGt30,jdbcType=INTEGER},
      </if>
      <if test="enable30 != null">
        enable_30 = #{enable30,jdbcType=INTEGER},
      </if>
      <if test="quantitySales30 != null">
        quantity_sales30 = #{quantitySales30,jdbcType=DECIMAL},
      </if>
      <if test="quantitySafeInventory != null">
        quantity_safe_inventory = #{quantitySafeInventory,jdbcType=DECIMAL},
      </if>
      <if test="level != null">
        level = #{level,jdbcType=INTEGER},
      </if>
      <if test="isEliminate != null">
        is_eliminate = #{isEliminate,jdbcType=INTEGER},
      </if>
      <if test="gmtUpdate != null">
        gmt_update = #{gmtUpdate,jdbcType=TIMESTAMP},
      </if>
      <if test="groupId != null">
        group_id = #{groupId,jdbcType=INTEGER},
      </if>
      <if test="buyerName != null">
        buyer_name = #{buyerName,jdbcType=VARCHAR},
      </if>
    </set>
    where id = #{id,jdbcType=INTEGER}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.bailuntec.domain.entity.DcAutoJitTag">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update dc_auto_jit_tag
    set tag_name = #{tagName,jdbcType=VARCHAR},
      is_gt_7 = #{isGt7,jdbcType=INTEGER},
      enable_7 = #{enable7,jdbcType=INTEGER},
      quantity_sales7 = #{quantitySales7,jdbcType=DECIMAL},
      is_gt_14 = #{isGt14,jdbcType=INTEGER},
      enable_14 = #{enable14,jdbcType=INTEGER},
      quantity_sales14 = #{quantitySales14,jdbcType=DECIMAL},
      is_gt_30 = #{isGt30,jdbcType=INTEGER},
      enable_30 = #{enable30,jdbcType=INTEGER},
      quantity_sales30 = #{quantitySales30,jdbcType=DECIMAL},
      quantity_safe_inventory = #{quantitySafeInventory,jdbcType=DECIMAL},
      level = #{level,jdbcType=INTEGER},
      is_eliminate = #{isEliminate,jdbcType=INTEGER},
      gmt_update = #{gmtUpdate,jdbcType=TIMESTAMP},
      group_id = #{groupId,jdbcType=INTEGER},
      buyer_name = #{buyerName,jdbcType=VARCHAR}
    where id = #{id,jdbcType=INTEGER}
  </update>
  <insert id="upsertSelective" parameterType="com.bailuntec.domain.entity.DcAutoJitTag">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
      @project https://github.com/itfsw/mybatis-generator-plugin
    -->
    insert into dc_auto_jit_tag
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        id,
      </if>
      <if test="tagName != null">
        tag_name,
      </if>
      <if test="isGt7 != null">
        is_gt_7,
      </if>
      <if test="enable7 != null">
        enable_7,
      </if>
      <if test="quantitySales7 != null">
        quantity_sales7,
      </if>
      <if test="isGt14 != null">
        is_gt_14,
      </if>
      <if test="enable14 != null">
        enable_14,
      </if>
      <if test="quantitySales14 != null">
        quantity_sales14,
      </if>
      <if test="isGt30 != null">
        is_gt_30,
      </if>
      <if test="enable30 != null">
        enable_30,
      </if>
      <if test="quantitySales30 != null">
        quantity_sales30,
      </if>
      <if test="quantitySafeInventory != null">
        quantity_safe_inventory,
      </if>
      <if test="level != null">
        level,
      </if>
      <if test="isEliminate != null">
        is_eliminate,
      </if>
      <if test="gmtUpdate != null">
        gmt_update,
      </if>
      <if test="groupId != null">
        group_id,
      </if>
      <if test="buyerName != null">
        buyer_name,
      </if>
    </trim>
    values
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        #{id,jdbcType=INTEGER},
      </if>
      <if test="tagName != null">
        #{tagName,jdbcType=VARCHAR},
      </if>
      <if test="isGt7 != null">
        #{isGt7,jdbcType=INTEGER},
      </if>
      <if test="enable7 != null">
        #{enable7,jdbcType=INTEGER},
      </if>
      <if test="quantitySales7 != null">
        #{quantitySales7,jdbcType=DECIMAL},
      </if>
      <if test="isGt14 != null">
        #{isGt14,jdbcType=INTEGER},
      </if>
      <if test="enable14 != null">
        #{enable14,jdbcType=INTEGER},
      </if>
      <if test="quantitySales14 != null">
        #{quantitySales14,jdbcType=DECIMAL},
      </if>
      <if test="isGt30 != null">
        #{isGt30,jdbcType=INTEGER},
      </if>
      <if test="enable30 != null">
        #{enable30,jdbcType=INTEGER},
      </if>
      <if test="quantitySales30 != null">
        #{quantitySales30,jdbcType=DECIMAL},
      </if>
      <if test="quantitySafeInventory != null">
        #{quantitySafeInventory,jdbcType=DECIMAL},
      </if>
      <if test="level != null">
        #{level,jdbcType=INTEGER},
      </if>
      <if test="isEliminate != null">
        #{isEliminate,jdbcType=INTEGER},
      </if>
      <if test="gmtUpdate != null">
        #{gmtUpdate,jdbcType=TIMESTAMP},
      </if>
      <if test="groupId != null">
        #{groupId,jdbcType=INTEGER},
      </if>
      <if test="buyerName != null">
        #{buyerName,jdbcType=VARCHAR},
      </if>
    </trim>
    on duplicate key update 
    <trim suffixOverrides=",">
      <if test="id != null">
        id = #{id,jdbcType=INTEGER},
      </if>
      <if test="tagName != null">
        tag_name = #{tagName,jdbcType=VARCHAR},
      </if>
      <if test="isGt7 != null">
        is_gt_7 = #{isGt7,jdbcType=INTEGER},
      </if>
      <if test="enable7 != null">
        enable_7 = #{enable7,jdbcType=INTEGER},
      </if>
      <if test="quantitySales7 != null">
        quantity_sales7 = #{quantitySales7,jdbcType=DECIMAL},
      </if>
      <if test="isGt14 != null">
        is_gt_14 = #{isGt14,jdbcType=INTEGER},
      </if>
      <if test="enable14 != null">
        enable_14 = #{enable14,jdbcType=INTEGER},
      </if>
      <if test="quantitySales14 != null">
        quantity_sales14 = #{quantitySales14,jdbcType=DECIMAL},
      </if>
      <if test="isGt30 != null">
        is_gt_30 = #{isGt30,jdbcType=INTEGER},
      </if>
      <if test="enable30 != null">
        enable_30 = #{enable30,jdbcType=INTEGER},
      </if>
      <if test="quantitySales30 != null">
        quantity_sales30 = #{quantitySales30,jdbcType=DECIMAL},
      </if>
      <if test="quantitySafeInventory != null">
        quantity_safe_inventory = #{quantitySafeInventory,jdbcType=DECIMAL},
      </if>
      <if test="level != null">
        level = #{level,jdbcType=INTEGER},
      </if>
      <if test="isEliminate != null">
        is_eliminate = #{isEliminate,jdbcType=INTEGER},
      </if>
      <if test="gmtUpdate != null">
        gmt_update = #{gmtUpdate,jdbcType=TIMESTAMP},
      </if>
      <if test="groupId != null">
        group_id = #{groupId,jdbcType=INTEGER},
      </if>
      <if test="buyerName != null">
        buyer_name = #{buyerName,jdbcType=VARCHAR},
      </if>
    </trim>
  </insert>
  <insert id="upsert" parameterType="com.bailuntec.domain.entity.DcAutoJitTag">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
      @project https://github.com/itfsw/mybatis-generator-plugin
    -->
    insert into dc_auto_jit_tag
    (id, tag_name, is_gt_7, enable_7, quantity_sales7, is_gt_14, enable_14, quantity_sales14, 
      is_gt_30, enable_30, quantity_sales30, quantity_safe_inventory, level, is_eliminate, 
      gmt_update, group_id, buyer_name)
    values
    (#{id,jdbcType=INTEGER}, #{tagName,jdbcType=VARCHAR}, #{isGt7,jdbcType=INTEGER}, 
      #{enable7,jdbcType=INTEGER}, #{quantitySales7,jdbcType=DECIMAL}, #{isGt14,jdbcType=INTEGER}, 
      #{enable14,jdbcType=INTEGER}, #{quantitySales14,jdbcType=DECIMAL}, #{isGt30,jdbcType=INTEGER}, 
      #{enable30,jdbcType=INTEGER}, #{quantitySales30,jdbcType=DECIMAL}, #{quantitySafeInventory,jdbcType=DECIMAL}, 
      #{level,jdbcType=INTEGER}, #{isEliminate,jdbcType=INTEGER}, #{gmtUpdate,jdbcType=TIMESTAMP}, 
      #{groupId,jdbcType=INTEGER}, #{buyerName,jdbcType=VARCHAR})
    on duplicate key update 
    id = #{id,jdbcType=INTEGER}, 
    tag_name = #{tagName,jdbcType=VARCHAR}, 
    is_gt_7 = #{isGt7,jdbcType=INTEGER}, 
    enable_7 = #{enable7,jdbcType=INTEGER}, 
    quantity_sales7 = #{quantitySales7,jdbcType=DECIMAL}, 
    is_gt_14 = #{isGt14,jdbcType=INTEGER}, 
    enable_14 = #{enable14,jdbcType=INTEGER}, 
    quantity_sales14 = #{quantitySales14,jdbcType=DECIMAL}, 
    is_gt_30 = #{isGt30,jdbcType=INTEGER}, 
    enable_30 = #{enable30,jdbcType=INTEGER}, 
    quantity_sales30 = #{quantitySales30,jdbcType=DECIMAL}, 
    quantity_safe_inventory = #{quantitySafeInventory,jdbcType=DECIMAL}, 
    level = #{level,jdbcType=INTEGER}, 
    is_eliminate = #{isEliminate,jdbcType=INTEGER}, 
    gmt_update = #{gmtUpdate,jdbcType=TIMESTAMP}, 
    group_id = #{groupId,jdbcType=INTEGER}, 
    buyer_name = #{buyerName,jdbcType=VARCHAR}
  </insert>
  <select id="selectOneByExample" parameterType="com.bailuntec.domain.example.DcAutoJitTagExample" resultMap="BaseResultMap">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
      @project https://github.com/itfsw/mybatis-generator-plugin
    -->
    select
    <include refid="Base_Column_List" />
    from dc_auto_jit_tag
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null">
      order by ${orderByClause}
    </if>
    limit 1
  </select>
</mapper>