<?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.tanpu.fund.mapper.generator.PersonnelInfoMapper">
  <resultMap id="BaseResultMap" type="com.tanpu.fund.entity.generator.PersonnelInfo">
    <!--@mbg.generated-->
    <!--@Table personnel_info-->
    <id column="id" jdbcType="VARCHAR" property="id" />
    <result column="personnel_name" jdbcType="VARCHAR" property="personnelName" />
    <result column="avatar" jdbcType="VARCHAR" property="avatar" />
    <result column="personnel_type" jdbcType="INTEGER" property="personnelType" />
    <result column="profession_background" jdbcType="TINYINT" property="professionBackground" />
    <result column="key_figure" jdbcType="INTEGER" property="keyFigure" />
    <result column="company_id" jdbcType="VARCHAR" property="companyId" />
    <result column="position" jdbcType="VARCHAR" property="position" />
    <result column="career_start_year" jdbcType="VARCHAR" property="careerStartYear" />
    <result column="investment_experience" jdbcType="INTEGER" property="investmentExperience" />
    <result column="sex" jdbcType="INTEGER" property="sex" />
    <result column="graduateschool" jdbcType="VARCHAR" property="graduateschool" />
    <result column="education" jdbcType="INTEGER" property="education" />
    <result column="major" jdbcType="VARCHAR" property="major" />
    <result column="porder" jdbcType="INTEGER" property="porder" />
    <result column="ifinclude" jdbcType="INTEGER" property="ifinclude" />
    <result column="isvisible" jdbcType="INTEGER" property="isvisible" />
    <result column="is_qualify" jdbcType="TINYINT" property="isQualify" />
    <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
    <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
    <result column="delete_tag" jdbcType="INTEGER" property="deleteTag" />
  </resultMap>
  <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.tanpu.fund.entity.generator.PersonnelInfo">
    <!--@mbg.generated-->
    <!--@Table personnel_info-->
    <result column="profile" jdbcType="LONGVARCHAR" property="profile" />
    <result column="topic" jdbcType="LONGVARCHAR" property="topic" />
  </resultMap>
  <sql id="Example_Where_Clause">
    <!--@mbg.generated-->
    <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">
    <!--@mbg.generated-->
    <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">
    <!--@mbg.generated-->
    id, personnel_name, avatar, personnel_type, profession_background, key_figure, company_id, 
    `position`, career_start_year, investment_experience, sex, graduateschool, education, 
    major, porder, ifinclude, isvisible, is_qualify, create_time, update_time, delete_tag
  </sql>
  <sql id="Blob_Column_List">
    <!--@mbg.generated-->
    profile, topic
  </sql>
  <select id="selectByExampleWithBLOBs" parameterType="com.tanpu.fund.entity.generator.PersonnelInfoExample" resultMap="ResultMapWithBLOBs">
    <!--@mbg.generated-->
    select
    <if test="distinct">
      distinct
    </if>
    <include refid="Base_Column_List" />
    ,
    <include refid="Blob_Column_List" />
    from personnel_info
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null">
      order by ${orderByClause}
    </if>
  </select>
  <select id="selectByExample" parameterType="com.tanpu.fund.entity.generator.PersonnelInfoExample" resultMap="BaseResultMap">
    <!--@mbg.generated-->
    select
    <if test="distinct">
      distinct
    </if>
    <include refid="Base_Column_List" />
    from personnel_info
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null">
      order by ${orderByClause}
    </if>
  </select>
  <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="ResultMapWithBLOBs">
    <!--@mbg.generated-->
    select 
    <include refid="Base_Column_List" />
    ,
    <include refid="Blob_Column_List" />
    from personnel_info
    where id = #{id,jdbcType=VARCHAR}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
    <!--@mbg.generated-->
    delete from personnel_info
    where id = #{id,jdbcType=VARCHAR}
  </delete>
  <delete id="deleteByExample" parameterType="com.tanpu.fund.entity.generator.PersonnelInfoExample">
    <!--@mbg.generated-->
    delete from personnel_info
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
  <insert id="insert" parameterType="com.tanpu.fund.entity.generator.PersonnelInfo">
    <!--@mbg.generated-->
    insert into personnel_info (id, personnel_name, avatar, 
      personnel_type, profession_background, key_figure, 
      company_id, `position`, career_start_year, 
      investment_experience, sex, graduateschool, 
      education, major, porder, 
      ifinclude, isvisible, is_qualify, 
      create_time, update_time, delete_tag, 
      profile, topic)
    values (#{id,jdbcType=VARCHAR}, #{personnelName,jdbcType=VARCHAR}, #{avatar,jdbcType=VARCHAR}, 
      #{personnelType,jdbcType=INTEGER}, #{professionBackground,jdbcType=TINYINT}, #{keyFigure,jdbcType=INTEGER}, 
      #{companyId,jdbcType=VARCHAR}, #{position,jdbcType=VARCHAR}, #{careerStartYear,jdbcType=VARCHAR}, 
      #{investmentExperience,jdbcType=INTEGER}, #{sex,jdbcType=INTEGER}, #{graduateschool,jdbcType=VARCHAR}, 
      #{education,jdbcType=INTEGER}, #{major,jdbcType=VARCHAR}, #{porder,jdbcType=INTEGER}, 
      #{ifinclude,jdbcType=INTEGER}, #{isvisible,jdbcType=INTEGER}, #{isQualify,jdbcType=TINYINT}, 
      #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{deleteTag,jdbcType=INTEGER}, 
      #{profile,jdbcType=LONGVARCHAR}, #{topic,jdbcType=LONGVARCHAR})
  </insert>
  <insert id="insertSelective" parameterType="com.tanpu.fund.entity.generator.PersonnelInfo">
    <!--@mbg.generated-->
    insert into personnel_info
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        id,
      </if>
      <if test="personnelName != null">
        personnel_name,
      </if>
      <if test="avatar != null">
        avatar,
      </if>
      <if test="personnelType != null">
        personnel_type,
      </if>
      <if test="professionBackground != null">
        profession_background,
      </if>
      <if test="keyFigure != null">
        key_figure,
      </if>
      <if test="companyId != null">
        company_id,
      </if>
      <if test="position != null">
        `position`,
      </if>
      <if test="careerStartYear != null">
        career_start_year,
      </if>
      <if test="investmentExperience != null">
        investment_experience,
      </if>
      <if test="sex != null">
        sex,
      </if>
      <if test="graduateschool != null">
        graduateschool,
      </if>
      <if test="education != null">
        education,
      </if>
      <if test="major != null">
        major,
      </if>
      <if test="porder != null">
        porder,
      </if>
      <if test="ifinclude != null">
        ifinclude,
      </if>
      <if test="isvisible != null">
        isvisible,
      </if>
      <if test="isQualify != null">
        is_qualify,
      </if>
      <if test="createTime != null">
        create_time,
      </if>
      <if test="updateTime != null">
        update_time,
      </if>
      <if test="deleteTag != null">
        delete_tag,
      </if>
      <if test="profile != null">
        profile,
      </if>
      <if test="topic != null">
        topic,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="id != null">
        #{id,jdbcType=VARCHAR},
      </if>
      <if test="personnelName != null">
        #{personnelName,jdbcType=VARCHAR},
      </if>
      <if test="avatar != null">
        #{avatar,jdbcType=VARCHAR},
      </if>
      <if test="personnelType != null">
        #{personnelType,jdbcType=INTEGER},
      </if>
      <if test="professionBackground != null">
        #{professionBackground,jdbcType=TINYINT},
      </if>
      <if test="keyFigure != null">
        #{keyFigure,jdbcType=INTEGER},
      </if>
      <if test="companyId != null">
        #{companyId,jdbcType=VARCHAR},
      </if>
      <if test="position != null">
        #{position,jdbcType=VARCHAR},
      </if>
      <if test="careerStartYear != null">
        #{careerStartYear,jdbcType=VARCHAR},
      </if>
      <if test="investmentExperience != null">
        #{investmentExperience,jdbcType=INTEGER},
      </if>
      <if test="sex != null">
        #{sex,jdbcType=INTEGER},
      </if>
      <if test="graduateschool != null">
        #{graduateschool,jdbcType=VARCHAR},
      </if>
      <if test="education != null">
        #{education,jdbcType=INTEGER},
      </if>
      <if test="major != null">
        #{major,jdbcType=VARCHAR},
      </if>
      <if test="porder != null">
        #{porder,jdbcType=INTEGER},
      </if>
      <if test="ifinclude != null">
        #{ifinclude,jdbcType=INTEGER},
      </if>
      <if test="isvisible != null">
        #{isvisible,jdbcType=INTEGER},
      </if>
      <if test="isQualify != null">
        #{isQualify,jdbcType=TINYINT},
      </if>
      <if test="createTime != null">
        #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="updateTime != null">
        #{updateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="deleteTag != null">
        #{deleteTag,jdbcType=INTEGER},
      </if>
      <if test="profile != null">
        #{profile,jdbcType=LONGVARCHAR},
      </if>
      <if test="topic != null">
        #{topic,jdbcType=LONGVARCHAR},
      </if>
    </trim>
  </insert>
  <select id="countByExample" parameterType="com.tanpu.fund.entity.generator.PersonnelInfoExample" resultType="java.lang.Long">
    <!--@mbg.generated-->
    select count(*) from personnel_info
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </select>
  <update id="updateByExampleSelective" parameterType="map">
    <!--@mbg.generated-->
    update personnel_info
    <set>
      <if test="record.id != null">
        id = #{record.id,jdbcType=VARCHAR},
      </if>
      <if test="record.personnelName != null">
        personnel_name = #{record.personnelName,jdbcType=VARCHAR},
      </if>
      <if test="record.avatar != null">
        avatar = #{record.avatar,jdbcType=VARCHAR},
      </if>
      <if test="record.personnelType != null">
        personnel_type = #{record.personnelType,jdbcType=INTEGER},
      </if>
      <if test="record.professionBackground != null">
        profession_background = #{record.professionBackground,jdbcType=TINYINT},
      </if>
      <if test="record.keyFigure != null">
        key_figure = #{record.keyFigure,jdbcType=INTEGER},
      </if>
      <if test="record.companyId != null">
        company_id = #{record.companyId,jdbcType=VARCHAR},
      </if>
      <if test="record.position != null">
        `position` = #{record.position,jdbcType=VARCHAR},
      </if>
      <if test="record.careerStartYear != null">
        career_start_year = #{record.careerStartYear,jdbcType=VARCHAR},
      </if>
      <if test="record.investmentExperience != null">
        investment_experience = #{record.investmentExperience,jdbcType=INTEGER},
      </if>
      <if test="record.sex != null">
        sex = #{record.sex,jdbcType=INTEGER},
      </if>
      <if test="record.graduateschool != null">
        graduateschool = #{record.graduateschool,jdbcType=VARCHAR},
      </if>
      <if test="record.education != null">
        education = #{record.education,jdbcType=INTEGER},
      </if>
      <if test="record.major != null">
        major = #{record.major,jdbcType=VARCHAR},
      </if>
      <if test="record.porder != null">
        porder = #{record.porder,jdbcType=INTEGER},
      </if>
      <if test="record.ifinclude != null">
        ifinclude = #{record.ifinclude,jdbcType=INTEGER},
      </if>
      <if test="record.isvisible != null">
        isvisible = #{record.isvisible,jdbcType=INTEGER},
      </if>
      <if test="record.isQualify != null">
        is_qualify = #{record.isQualify,jdbcType=TINYINT},
      </if>
      <if test="record.createTime != null">
        create_time = #{record.createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.updateTime != null">
        update_time = #{record.updateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.deleteTag != null">
        delete_tag = #{record.deleteTag,jdbcType=INTEGER},
      </if>
      <if test="record.profile != null">
        profile = #{record.profile,jdbcType=LONGVARCHAR},
      </if>
      <if test="record.topic != null">
        topic = #{record.topic,jdbcType=LONGVARCHAR},
      </if>
    </set>
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByExampleWithBLOBs" parameterType="map">
    <!--@mbg.generated-->
    update personnel_info
    set id = #{record.id,jdbcType=VARCHAR},
      personnel_name = #{record.personnelName,jdbcType=VARCHAR},
      avatar = #{record.avatar,jdbcType=VARCHAR},
      personnel_type = #{record.personnelType,jdbcType=INTEGER},
      profession_background = #{record.professionBackground,jdbcType=TINYINT},
      key_figure = #{record.keyFigure,jdbcType=INTEGER},
      company_id = #{record.companyId,jdbcType=VARCHAR},
      `position` = #{record.position,jdbcType=VARCHAR},
      career_start_year = #{record.careerStartYear,jdbcType=VARCHAR},
      investment_experience = #{record.investmentExperience,jdbcType=INTEGER},
      sex = #{record.sex,jdbcType=INTEGER},
      graduateschool = #{record.graduateschool,jdbcType=VARCHAR},
      education = #{record.education,jdbcType=INTEGER},
      major = #{record.major,jdbcType=VARCHAR},
      porder = #{record.porder,jdbcType=INTEGER},
      ifinclude = #{record.ifinclude,jdbcType=INTEGER},
      isvisible = #{record.isvisible,jdbcType=INTEGER},
      is_qualify = #{record.isQualify,jdbcType=TINYINT},
      create_time = #{record.createTime,jdbcType=TIMESTAMP},
      update_time = #{record.updateTime,jdbcType=TIMESTAMP},
      delete_tag = #{record.deleteTag,jdbcType=INTEGER},
      profile = #{record.profile,jdbcType=LONGVARCHAR},
      topic = #{record.topic,jdbcType=LONGVARCHAR}
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByExample" parameterType="map">
    <!--@mbg.generated-->
    update personnel_info
    set id = #{record.id,jdbcType=VARCHAR},
      personnel_name = #{record.personnelName,jdbcType=VARCHAR},
      avatar = #{record.avatar,jdbcType=VARCHAR},
      personnel_type = #{record.personnelType,jdbcType=INTEGER},
      profession_background = #{record.professionBackground,jdbcType=TINYINT},
      key_figure = #{record.keyFigure,jdbcType=INTEGER},
      company_id = #{record.companyId,jdbcType=VARCHAR},
      `position` = #{record.position,jdbcType=VARCHAR},
      career_start_year = #{record.careerStartYear,jdbcType=VARCHAR},
      investment_experience = #{record.investmentExperience,jdbcType=INTEGER},
      sex = #{record.sex,jdbcType=INTEGER},
      graduateschool = #{record.graduateschool,jdbcType=VARCHAR},
      education = #{record.education,jdbcType=INTEGER},
      major = #{record.major,jdbcType=VARCHAR},
      porder = #{record.porder,jdbcType=INTEGER},
      ifinclude = #{record.ifinclude,jdbcType=INTEGER},
      isvisible = #{record.isvisible,jdbcType=INTEGER},
      is_qualify = #{record.isQualify,jdbcType=TINYINT},
      create_time = #{record.createTime,jdbcType=TIMESTAMP},
      update_time = #{record.updateTime,jdbcType=TIMESTAMP},
      delete_tag = #{record.deleteTag,jdbcType=INTEGER}
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByPrimaryKeySelective" parameterType="com.tanpu.fund.entity.generator.PersonnelInfo">
    <!--@mbg.generated-->
    update personnel_info
    <set>
      <if test="personnelName != null">
        personnel_name = #{personnelName,jdbcType=VARCHAR},
      </if>
      <if test="avatar != null">
        avatar = #{avatar,jdbcType=VARCHAR},
      </if>
      <if test="personnelType != null">
        personnel_type = #{personnelType,jdbcType=INTEGER},
      </if>
      <if test="professionBackground != null">
        profession_background = #{professionBackground,jdbcType=TINYINT},
      </if>
      <if test="keyFigure != null">
        key_figure = #{keyFigure,jdbcType=INTEGER},
      </if>
      <if test="companyId != null">
        company_id = #{companyId,jdbcType=VARCHAR},
      </if>
      <if test="position != null">
        `position` = #{position,jdbcType=VARCHAR},
      </if>
      <if test="careerStartYear != null">
        career_start_year = #{careerStartYear,jdbcType=VARCHAR},
      </if>
      <if test="investmentExperience != null">
        investment_experience = #{investmentExperience,jdbcType=INTEGER},
      </if>
      <if test="sex != null">
        sex = #{sex,jdbcType=INTEGER},
      </if>
      <if test="graduateschool != null">
        graduateschool = #{graduateschool,jdbcType=VARCHAR},
      </if>
      <if test="education != null">
        education = #{education,jdbcType=INTEGER},
      </if>
      <if test="major != null">
        major = #{major,jdbcType=VARCHAR},
      </if>
      <if test="porder != null">
        porder = #{porder,jdbcType=INTEGER},
      </if>
      <if test="ifinclude != null">
        ifinclude = #{ifinclude,jdbcType=INTEGER},
      </if>
      <if test="isvisible != null">
        isvisible = #{isvisible,jdbcType=INTEGER},
      </if>
      <if test="isQualify != null">
        is_qualify = #{isQualify,jdbcType=TINYINT},
      </if>
      <if test="createTime != null">
        create_time = #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="updateTime != null">
        update_time = #{updateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="deleteTag != null">
        delete_tag = #{deleteTag,jdbcType=INTEGER},
      </if>
      <if test="profile != null">
        profile = #{profile,jdbcType=LONGVARCHAR},
      </if>
      <if test="topic != null">
        topic = #{topic,jdbcType=LONGVARCHAR},
      </if>
    </set>
    where id = #{id,jdbcType=VARCHAR}
  </update>
  <update id="updateByPrimaryKeyWithBLOBs" parameterType="com.tanpu.fund.entity.generator.PersonnelInfo">
    <!--@mbg.generated-->
    update personnel_info
    set personnel_name = #{personnelName,jdbcType=VARCHAR},
      avatar = #{avatar,jdbcType=VARCHAR},
      personnel_type = #{personnelType,jdbcType=INTEGER},
      profession_background = #{professionBackground,jdbcType=TINYINT},
      key_figure = #{keyFigure,jdbcType=INTEGER},
      company_id = #{companyId,jdbcType=VARCHAR},
      `position` = #{position,jdbcType=VARCHAR},
      career_start_year = #{careerStartYear,jdbcType=VARCHAR},
      investment_experience = #{investmentExperience,jdbcType=INTEGER},
      sex = #{sex,jdbcType=INTEGER},
      graduateschool = #{graduateschool,jdbcType=VARCHAR},
      education = #{education,jdbcType=INTEGER},
      major = #{major,jdbcType=VARCHAR},
      porder = #{porder,jdbcType=INTEGER},
      ifinclude = #{ifinclude,jdbcType=INTEGER},
      isvisible = #{isvisible,jdbcType=INTEGER},
      is_qualify = #{isQualify,jdbcType=TINYINT},
      create_time = #{createTime,jdbcType=TIMESTAMP},
      update_time = #{updateTime,jdbcType=TIMESTAMP},
      delete_tag = #{deleteTag,jdbcType=INTEGER},
      profile = #{profile,jdbcType=LONGVARCHAR},
      topic = #{topic,jdbcType=LONGVARCHAR}
    where id = #{id,jdbcType=VARCHAR}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.tanpu.fund.entity.generator.PersonnelInfo">
    <!--@mbg.generated-->
    update personnel_info
    set personnel_name = #{personnelName,jdbcType=VARCHAR},
      avatar = #{avatar,jdbcType=VARCHAR},
      personnel_type = #{personnelType,jdbcType=INTEGER},
      profession_background = #{professionBackground,jdbcType=TINYINT},
      key_figure = #{keyFigure,jdbcType=INTEGER},
      company_id = #{companyId,jdbcType=VARCHAR},
      `position` = #{position,jdbcType=VARCHAR},
      career_start_year = #{careerStartYear,jdbcType=VARCHAR},
      investment_experience = #{investmentExperience,jdbcType=INTEGER},
      sex = #{sex,jdbcType=INTEGER},
      graduateschool = #{graduateschool,jdbcType=VARCHAR},
      education = #{education,jdbcType=INTEGER},
      major = #{major,jdbcType=VARCHAR},
      porder = #{porder,jdbcType=INTEGER},
      ifinclude = #{ifinclude,jdbcType=INTEGER},
      isvisible = #{isvisible,jdbcType=INTEGER},
      is_qualify = #{isQualify,jdbcType=TINYINT},
      create_time = #{createTime,jdbcType=TIMESTAMP},
      update_time = #{updateTime,jdbcType=TIMESTAMP},
      delete_tag = #{deleteTag,jdbcType=INTEGER}
    where id = #{id,jdbcType=VARCHAR}
  </update>
  <update id="updateBatch" parameterType="java.util.List">
    <!--@mbg.generated-->
    update personnel_info
    <trim prefix="set" suffixOverrides=",">
      <trim prefix="personnel_name = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.personnelName,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="avatar = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.avatar,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="personnel_type = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.personnelType,jdbcType=INTEGER}
        </foreach>
      </trim>
      <trim prefix="profession_background = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.professionBackground,jdbcType=TINYINT}
        </foreach>
      </trim>
      <trim prefix="key_figure = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.keyFigure,jdbcType=INTEGER}
        </foreach>
      </trim>
      <trim prefix="company_id = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.companyId,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="`position` = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.position,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="career_start_year = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.careerStartYear,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="investment_experience = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.investmentExperience,jdbcType=INTEGER}
        </foreach>
      </trim>
      <trim prefix="sex = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.sex,jdbcType=INTEGER}
        </foreach>
      </trim>
      <trim prefix="graduateschool = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.graduateschool,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="education = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.education,jdbcType=INTEGER}
        </foreach>
      </trim>
      <trim prefix="major = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.major,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="porder = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.porder,jdbcType=INTEGER}
        </foreach>
      </trim>
      <trim prefix="ifinclude = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.ifinclude,jdbcType=INTEGER}
        </foreach>
      </trim>
      <trim prefix="isvisible = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.isvisible,jdbcType=INTEGER}
        </foreach>
      </trim>
      <trim prefix="is_qualify = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.isQualify,jdbcType=TINYINT}
        </foreach>
      </trim>
      <trim prefix="create_time = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.createTime,jdbcType=TIMESTAMP}
        </foreach>
      </trim>
      <trim prefix="update_time = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.updateTime,jdbcType=TIMESTAMP}
        </foreach>
      </trim>
      <trim prefix="delete_tag = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.deleteTag,jdbcType=INTEGER}
        </foreach>
      </trim>
      <trim prefix="profile = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.profile,jdbcType=LONGVARCHAR}
        </foreach>
      </trim>
      <trim prefix="topic = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.topic,jdbcType=LONGVARCHAR}
        </foreach>
      </trim>
    </trim>
    where id in
    <foreach close=")" collection="list" item="item" open="(" separator=", ">
      #{item.id,jdbcType=VARCHAR}
    </foreach>
  </update>
  <insert id="batchInsert" parameterType="map">
    <!--@mbg.generated-->
    insert into personnel_info
    (id, personnel_name, avatar, personnel_type, profession_background, key_figure, company_id, 
      `position`, career_start_year, investment_experience, sex, graduateschool, education, 
      major, porder, ifinclude, isvisible, is_qualify, create_time, update_time, delete_tag, 
      profile, topic)
    values
    <foreach collection="list" item="item" separator=",">
      (#{item.id,jdbcType=VARCHAR}, #{item.personnelName,jdbcType=VARCHAR}, #{item.avatar,jdbcType=VARCHAR}, 
        #{item.personnelType,jdbcType=INTEGER}, #{item.professionBackground,jdbcType=TINYINT}, 
        #{item.keyFigure,jdbcType=INTEGER}, #{item.companyId,jdbcType=VARCHAR}, #{item.position,jdbcType=VARCHAR}, 
        #{item.careerStartYear,jdbcType=VARCHAR}, #{item.investmentExperience,jdbcType=INTEGER}, 
        #{item.sex,jdbcType=INTEGER}, #{item.graduateschool,jdbcType=VARCHAR}, #{item.education,jdbcType=INTEGER}, 
        #{item.major,jdbcType=VARCHAR}, #{item.porder,jdbcType=INTEGER}, #{item.ifinclude,jdbcType=INTEGER}, 
        #{item.isvisible,jdbcType=INTEGER}, #{item.isQualify,jdbcType=TINYINT}, #{item.createTime,jdbcType=TIMESTAMP}, 
        #{item.updateTime,jdbcType=TIMESTAMP}, #{item.deleteTag,jdbcType=INTEGER}, #{item.profile,jdbcType=LONGVARCHAR}, 
        #{item.topic,jdbcType=LONGVARCHAR})
    </foreach>
  </insert>
  <insert id="insertOrUpdate" parameterType="com.tanpu.fund.entity.generator.PersonnelInfo">
    <!--@mbg.generated-->
    insert into personnel_info
    (id, personnel_name, avatar, personnel_type, profession_background, key_figure, company_id, 
      `position`, career_start_year, investment_experience, sex, graduateschool, education, 
      major, porder, ifinclude, isvisible, is_qualify, create_time, update_time, delete_tag
      )
    values
    (#{id,jdbcType=VARCHAR}, #{personnelName,jdbcType=VARCHAR}, #{avatar,jdbcType=VARCHAR}, 
      #{personnelType,jdbcType=INTEGER}, #{professionBackground,jdbcType=TINYINT}, #{keyFigure,jdbcType=INTEGER}, 
      #{companyId,jdbcType=VARCHAR}, #{position,jdbcType=VARCHAR}, #{careerStartYear,jdbcType=VARCHAR}, 
      #{investmentExperience,jdbcType=INTEGER}, #{sex,jdbcType=INTEGER}, #{graduateschool,jdbcType=VARCHAR}, 
      #{education,jdbcType=INTEGER}, #{major,jdbcType=VARCHAR}, #{porder,jdbcType=INTEGER}, 
      #{ifinclude,jdbcType=INTEGER}, #{isvisible,jdbcType=INTEGER}, #{isQualify,jdbcType=TINYINT}, 
      #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{deleteTag,jdbcType=INTEGER}
      )
    on duplicate key update 
    id = #{id,jdbcType=VARCHAR}, 
    personnel_name = #{personnelName,jdbcType=VARCHAR}, 
    avatar = #{avatar,jdbcType=VARCHAR}, 
    personnel_type = #{personnelType,jdbcType=INTEGER}, 
    profession_background = #{professionBackground,jdbcType=TINYINT}, 
    key_figure = #{keyFigure,jdbcType=INTEGER}, 
    company_id = #{companyId,jdbcType=VARCHAR}, 
    `position` = #{position,jdbcType=VARCHAR}, 
    career_start_year = #{careerStartYear,jdbcType=VARCHAR}, 
    investment_experience = #{investmentExperience,jdbcType=INTEGER}, 
    sex = #{sex,jdbcType=INTEGER}, 
    graduateschool = #{graduateschool,jdbcType=VARCHAR}, 
    education = #{education,jdbcType=INTEGER}, 
    major = #{major,jdbcType=VARCHAR}, 
    porder = #{porder,jdbcType=INTEGER}, 
    ifinclude = #{ifinclude,jdbcType=INTEGER}, 
    isvisible = #{isvisible,jdbcType=INTEGER}, 
    is_qualify = #{isQualify,jdbcType=TINYINT}, 
    create_time = #{createTime,jdbcType=TIMESTAMP}, 
    update_time = #{updateTime,jdbcType=TIMESTAMP}, 
    delete_tag = #{deleteTag,jdbcType=INTEGER}
  </insert>
  <insert id="insertOrUpdateWithBLOBs" parameterType="com.tanpu.fund.entity.generator.PersonnelInfo">
    <!--@mbg.generated-->
    insert into personnel_info
    (id, personnel_name, avatar, personnel_type, profession_background, key_figure, company_id, 
      `position`, career_start_year, investment_experience, sex, graduateschool, education, 
      major, porder, ifinclude, isvisible, is_qualify, create_time, update_time, delete_tag, 
      profile, topic)
    values
    (#{id,jdbcType=VARCHAR}, #{personnelName,jdbcType=VARCHAR}, #{avatar,jdbcType=VARCHAR}, 
      #{personnelType,jdbcType=INTEGER}, #{professionBackground,jdbcType=TINYINT}, #{keyFigure,jdbcType=INTEGER}, 
      #{companyId,jdbcType=VARCHAR}, #{position,jdbcType=VARCHAR}, #{careerStartYear,jdbcType=VARCHAR}, 
      #{investmentExperience,jdbcType=INTEGER}, #{sex,jdbcType=INTEGER}, #{graduateschool,jdbcType=VARCHAR}, 
      #{education,jdbcType=INTEGER}, #{major,jdbcType=VARCHAR}, #{porder,jdbcType=INTEGER}, 
      #{ifinclude,jdbcType=INTEGER}, #{isvisible,jdbcType=INTEGER}, #{isQualify,jdbcType=TINYINT}, 
      #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{deleteTag,jdbcType=INTEGER}, 
      #{profile,jdbcType=LONGVARCHAR}, #{topic,jdbcType=LONGVARCHAR})
    on duplicate key update 
    id = #{id,jdbcType=VARCHAR}, 
    personnel_name = #{personnelName,jdbcType=VARCHAR}, 
    avatar = #{avatar,jdbcType=VARCHAR}, 
    personnel_type = #{personnelType,jdbcType=INTEGER}, 
    profession_background = #{professionBackground,jdbcType=TINYINT}, 
    key_figure = #{keyFigure,jdbcType=INTEGER}, 
    company_id = #{companyId,jdbcType=VARCHAR}, 
    `position` = #{position,jdbcType=VARCHAR}, 
    career_start_year = #{careerStartYear,jdbcType=VARCHAR}, 
    investment_experience = #{investmentExperience,jdbcType=INTEGER}, 
    sex = #{sex,jdbcType=INTEGER}, 
    graduateschool = #{graduateschool,jdbcType=VARCHAR}, 
    education = #{education,jdbcType=INTEGER}, 
    major = #{major,jdbcType=VARCHAR}, 
    porder = #{porder,jdbcType=INTEGER}, 
    ifinclude = #{ifinclude,jdbcType=INTEGER}, 
    isvisible = #{isvisible,jdbcType=INTEGER}, 
    is_qualify = #{isQualify,jdbcType=TINYINT}, 
    create_time = #{createTime,jdbcType=TIMESTAMP}, 
    update_time = #{updateTime,jdbcType=TIMESTAMP}, 
    delete_tag = #{deleteTag,jdbcType=INTEGER}, 
    profile = #{profile,jdbcType=LONGVARCHAR}, 
    topic = #{topic,jdbcType=LONGVARCHAR}
  </insert>
  <insert id="insertOrUpdateSelective" parameterType="com.tanpu.fund.entity.generator.PersonnelInfo">
    <!--@mbg.generated-->
    insert into personnel_info
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        id,
      </if>
      <if test="personnelName != null">
        personnel_name,
      </if>
      <if test="avatar != null">
        avatar,
      </if>
      <if test="personnelType != null">
        personnel_type,
      </if>
      <if test="professionBackground != null">
        profession_background,
      </if>
      <if test="keyFigure != null">
        key_figure,
      </if>
      <if test="companyId != null">
        company_id,
      </if>
      <if test="position != null">
        `position`,
      </if>
      <if test="careerStartYear != null">
        career_start_year,
      </if>
      <if test="investmentExperience != null">
        investment_experience,
      </if>
      <if test="sex != null">
        sex,
      </if>
      <if test="graduateschool != null">
        graduateschool,
      </if>
      <if test="education != null">
        education,
      </if>
      <if test="major != null">
        major,
      </if>
      <if test="porder != null">
        porder,
      </if>
      <if test="ifinclude != null">
        ifinclude,
      </if>
      <if test="isvisible != null">
        isvisible,
      </if>
      <if test="isQualify != null">
        is_qualify,
      </if>
      <if test="createTime != null">
        create_time,
      </if>
      <if test="updateTime != null">
        update_time,
      </if>
      <if test="deleteTag != null">
        delete_tag,
      </if>
      <if test="profile != null">
        profile,
      </if>
      <if test="topic != null">
        topic,
      </if>
    </trim>
    values
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        #{id,jdbcType=VARCHAR},
      </if>
      <if test="personnelName != null">
        #{personnelName,jdbcType=VARCHAR},
      </if>
      <if test="avatar != null">
        #{avatar,jdbcType=VARCHAR},
      </if>
      <if test="personnelType != null">
        #{personnelType,jdbcType=INTEGER},
      </if>
      <if test="professionBackground != null">
        #{professionBackground,jdbcType=TINYINT},
      </if>
      <if test="keyFigure != null">
        #{keyFigure,jdbcType=INTEGER},
      </if>
      <if test="companyId != null">
        #{companyId,jdbcType=VARCHAR},
      </if>
      <if test="position != null">
        #{position,jdbcType=VARCHAR},
      </if>
      <if test="careerStartYear != null">
        #{careerStartYear,jdbcType=VARCHAR},
      </if>
      <if test="investmentExperience != null">
        #{investmentExperience,jdbcType=INTEGER},
      </if>
      <if test="sex != null">
        #{sex,jdbcType=INTEGER},
      </if>
      <if test="graduateschool != null">
        #{graduateschool,jdbcType=VARCHAR},
      </if>
      <if test="education != null">
        #{education,jdbcType=INTEGER},
      </if>
      <if test="major != null">
        #{major,jdbcType=VARCHAR},
      </if>
      <if test="porder != null">
        #{porder,jdbcType=INTEGER},
      </if>
      <if test="ifinclude != null">
        #{ifinclude,jdbcType=INTEGER},
      </if>
      <if test="isvisible != null">
        #{isvisible,jdbcType=INTEGER},
      </if>
      <if test="isQualify != null">
        #{isQualify,jdbcType=TINYINT},
      </if>
      <if test="createTime != null">
        #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="updateTime != null">
        #{updateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="deleteTag != null">
        #{deleteTag,jdbcType=INTEGER},
      </if>
      <if test="profile != null">
        #{profile,jdbcType=LONGVARCHAR},
      </if>
      <if test="topic != null">
        #{topic,jdbcType=LONGVARCHAR},
      </if>
    </trim>
    on duplicate key update 
    <trim suffixOverrides=",">
      <if test="id != null">
        id = #{id,jdbcType=VARCHAR},
      </if>
      <if test="personnelName != null">
        personnel_name = #{personnelName,jdbcType=VARCHAR},
      </if>
      <if test="avatar != null">
        avatar = #{avatar,jdbcType=VARCHAR},
      </if>
      <if test="personnelType != null">
        personnel_type = #{personnelType,jdbcType=INTEGER},
      </if>
      <if test="professionBackground != null">
        profession_background = #{professionBackground,jdbcType=TINYINT},
      </if>
      <if test="keyFigure != null">
        key_figure = #{keyFigure,jdbcType=INTEGER},
      </if>
      <if test="companyId != null">
        company_id = #{companyId,jdbcType=VARCHAR},
      </if>
      <if test="position != null">
        `position` = #{position,jdbcType=VARCHAR},
      </if>
      <if test="careerStartYear != null">
        career_start_year = #{careerStartYear,jdbcType=VARCHAR},
      </if>
      <if test="investmentExperience != null">
        investment_experience = #{investmentExperience,jdbcType=INTEGER},
      </if>
      <if test="sex != null">
        sex = #{sex,jdbcType=INTEGER},
      </if>
      <if test="graduateschool != null">
        graduateschool = #{graduateschool,jdbcType=VARCHAR},
      </if>
      <if test="education != null">
        education = #{education,jdbcType=INTEGER},
      </if>
      <if test="major != null">
        major = #{major,jdbcType=VARCHAR},
      </if>
      <if test="porder != null">
        porder = #{porder,jdbcType=INTEGER},
      </if>
      <if test="ifinclude != null">
        ifinclude = #{ifinclude,jdbcType=INTEGER},
      </if>
      <if test="isvisible != null">
        isvisible = #{isvisible,jdbcType=INTEGER},
      </if>
      <if test="isQualify != null">
        is_qualify = #{isQualify,jdbcType=TINYINT},
      </if>
      <if test="createTime != null">
        create_time = #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="updateTime != null">
        update_time = #{updateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="deleteTag != null">
        delete_tag = #{deleteTag,jdbcType=INTEGER},
      </if>
      <if test="profile != null">
        profile = #{profile,jdbcType=LONGVARCHAR},
      </if>
      <if test="topic != null">
        topic = #{topic,jdbcType=LONGVARCHAR},
      </if>
    </trim>
  </insert>
</mapper>