<?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.chaozhanggui.dao.system.dao.TbPlussMccInfoYsMapper">
  <resultMap id="BaseResultMap" type="com.chaozhanggui.dao.system.entity.TbPlussMccInfoYs">
    <id column="id" jdbcType="INTEGER" property="id" />
    <result column="mccCode" jdbcType="VARCHAR" property="mcccode" />
    <result column="mccDesc" jdbcType="VARCHAR" property="mccdesc" />
    <result column="compan" jdbcType="VARCHAR" property="compan" />
    <result column="individual" jdbcType="VARCHAR" property="individual" />
    <result column="micro" jdbcType="VARCHAR" property="micro" />
    <result column="type" jdbcType="VARCHAR" property="type" />
    <result column="mchType" jdbcType="VARCHAR" property="mchtype" />
    <result column="mchTypeDesc" jdbcType="VARCHAR" property="mchtypedesc" />
    <result column="industry" jdbcType="VARCHAR" property="industry" />
    <result column="industryDesc" jdbcType="VARCHAR" property="industrydesc" />
    <result column="creator" jdbcType="VARCHAR" property="creator" />
    <result column="createTime" jdbcType="TIMESTAMP" property="createtime" />
  </resultMap>
  <sql id="Base_Column_List">
    id, mccCode, mccDesc, compan, individual, micro, type, mchType, mchTypeDesc, industry, 
    industryDesc, creator, createTime
  </sql>
  <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
    select 
    <include refid="Base_Column_List" />
    from tb_pluss_mcc_info_ys
    where id = #{id,jdbcType=INTEGER}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
    delete from tb_pluss_mcc_info_ys
    where id = #{id,jdbcType=INTEGER}
  </delete>
  <insert id="insert" parameterType="com.chaozhanggui.dao.system.entity.TbPlussMccInfoYs">
    insert into tb_pluss_mcc_info_ys (id, mccCode, mccDesc, 
      compan, individual, micro, 
      type, mchType, mchTypeDesc, 
      industry, industryDesc, creator, 
      createTime)
    values (#{id,jdbcType=INTEGER}, #{mcccode,jdbcType=VARCHAR}, #{mccdesc,jdbcType=VARCHAR}, 
      #{compan,jdbcType=VARCHAR}, #{individual,jdbcType=VARCHAR}, #{micro,jdbcType=VARCHAR}, 
      #{type,jdbcType=VARCHAR}, #{mchtype,jdbcType=VARCHAR}, #{mchtypedesc,jdbcType=VARCHAR}, 
      #{industry,jdbcType=VARCHAR}, #{industrydesc,jdbcType=VARCHAR}, #{creator,jdbcType=VARCHAR}, 
      #{createtime,jdbcType=TIMESTAMP})
  </insert>
  <insert id="insertSelective" parameterType="com.chaozhanggui.dao.system.entity.TbPlussMccInfoYs">
    insert into tb_pluss_mcc_info_ys
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        id,
      </if>
      <if test="mcccode != null">
        mccCode,
      </if>
      <if test="mccdesc != null">
        mccDesc,
      </if>
      <if test="compan != null">
        compan,
      </if>
      <if test="individual != null">
        individual,
      </if>
      <if test="micro != null">
        micro,
      </if>
      <if test="type != null">
        type,
      </if>
      <if test="mchtype != null">
        mchType,
      </if>
      <if test="mchtypedesc != null">
        mchTypeDesc,
      </if>
      <if test="industry != null">
        industry,
      </if>
      <if test="industrydesc != null">
        industryDesc,
      </if>
      <if test="creator != null">
        creator,
      </if>
      <if test="createtime != null">
        createTime,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="id != null">
        #{id,jdbcType=INTEGER},
      </if>
      <if test="mcccode != null">
        #{mcccode,jdbcType=VARCHAR},
      </if>
      <if test="mccdesc != null">
        #{mccdesc,jdbcType=VARCHAR},
      </if>
      <if test="compan != null">
        #{compan,jdbcType=VARCHAR},
      </if>
      <if test="individual != null">
        #{individual,jdbcType=VARCHAR},
      </if>
      <if test="micro != null">
        #{micro,jdbcType=VARCHAR},
      </if>
      <if test="type != null">
        #{type,jdbcType=VARCHAR},
      </if>
      <if test="mchtype != null">
        #{mchtype,jdbcType=VARCHAR},
      </if>
      <if test="mchtypedesc != null">
        #{mchtypedesc,jdbcType=VARCHAR},
      </if>
      <if test="industry != null">
        #{industry,jdbcType=VARCHAR},
      </if>
      <if test="industrydesc != null">
        #{industrydesc,jdbcType=VARCHAR},
      </if>
      <if test="creator != null">
        #{creator,jdbcType=VARCHAR},
      </if>
      <if test="createtime != null">
        #{createtime,jdbcType=TIMESTAMP},
      </if>
    </trim>
  </insert>
  <update id="updateByPrimaryKeySelective" parameterType="com.chaozhanggui.dao.system.entity.TbPlussMccInfoYs">
    update tb_pluss_mcc_info_ys
    <set>
      <if test="mcccode != null">
        mccCode = #{mcccode,jdbcType=VARCHAR},
      </if>
      <if test="mccdesc != null">
        mccDesc = #{mccdesc,jdbcType=VARCHAR},
      </if>
      <if test="compan != null">
        compan = #{compan,jdbcType=VARCHAR},
      </if>
      <if test="individual != null">
        individual = #{individual,jdbcType=VARCHAR},
      </if>
      <if test="micro != null">
        micro = #{micro,jdbcType=VARCHAR},
      </if>
      <if test="type != null">
        type = #{type,jdbcType=VARCHAR},
      </if>
      <if test="mchtype != null">
        mchType = #{mchtype,jdbcType=VARCHAR},
      </if>
      <if test="mchtypedesc != null">
        mchTypeDesc = #{mchtypedesc,jdbcType=VARCHAR},
      </if>
      <if test="industry != null">
        industry = #{industry,jdbcType=VARCHAR},
      </if>
      <if test="industrydesc != null">
        industryDesc = #{industrydesc,jdbcType=VARCHAR},
      </if>
      <if test="creator != null">
        creator = #{creator,jdbcType=VARCHAR},
      </if>
      <if test="createtime != null">
        createTime = #{createtime,jdbcType=TIMESTAMP},
      </if>
    </set>
    where id = #{id,jdbcType=INTEGER}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.chaozhanggui.dao.system.entity.TbPlussMccInfoYs">
    update tb_pluss_mcc_info_ys
    set mccCode = #{mcccode,jdbcType=VARCHAR},
      mccDesc = #{mccdesc,jdbcType=VARCHAR},
      compan = #{compan,jdbcType=VARCHAR},
      individual = #{individual,jdbcType=VARCHAR},
      micro = #{micro,jdbcType=VARCHAR},
      type = #{type,jdbcType=VARCHAR},
      mchType = #{mchtype,jdbcType=VARCHAR},
      mchTypeDesc = #{mchtypedesc,jdbcType=VARCHAR},
      industry = #{industry,jdbcType=VARCHAR},
      industryDesc = #{industrydesc,jdbcType=VARCHAR},
      creator = #{creator,jdbcType=VARCHAR},
      createTime = #{createtime,jdbcType=TIMESTAMP}
    where id = #{id,jdbcType=INTEGER}
  </update>
</mapper>