Ver código fonte

开发人事

Signed-off-by: anderx <312518615@qq.com>
anderx 6 anos atrás
pai
commit
be80be399f
19 arquivos alterados com 4654 adições e 5 exclusões
  1. 1 1
      GeneratorConfig.xml
  2. 96 0
      src/main/java/com/goafanti/common/dao/PersonnelContactMapper.java
  3. 96 0
      src/main/java/com/goafanti/common/dao/PersonnelEntryMapper.java
  4. 96 0
      src/main/java/com/goafanti/common/dao/PersonnelPromotionMapper.java
  5. 286 0
      src/main/java/com/goafanti/common/mapper/PersonnelContactMapper.xml
  6. 350 0
      src/main/java/com/goafanti/common/mapper/PersonnelEntryMapper.xml
  7. 351 0
      src/main/java/com/goafanti/common/mapper/PersonnelPromotionMapper.xml
  8. 170 0
      src/main/java/com/goafanti/common/model/PersonnelContact.java
  9. 623 0
      src/main/java/com/goafanti/common/model/PersonnelContactExample.java
  10. 302 0
      src/main/java/com/goafanti/common/model/PersonnelEntry.java
  11. 913 0
      src/main/java/com/goafanti/common/model/PersonnelEntryExample.java
  12. 302 0
      src/main/java/com/goafanti/common/model/PersonnelPromotion.java
  13. 893 0
      src/main/java/com/goafanti/common/model/PersonnelPromotionExample.java
  14. 34 0
      src/main/java/com/goafanti/personnel/bo/InutpPersonnelContactBo.java
  15. 7 0
      src/main/java/com/goafanti/personnel/bo/InutpPersonnelEntryBo.java
  16. 16 0
      src/main/java/com/goafanti/personnel/bo/InutpPersonnelPromotionBo.java
  17. 41 3
      src/main/java/com/goafanti/personnel/controller/AdminPersonnelApiController.java
  18. 9 0
      src/main/java/com/goafanti/personnel/service/PersonnelService.java
  19. 68 1
      src/main/java/com/goafanti/personnel/service/impl/PersonnelServiceImpl.java

+ 1 - 1
GeneratorConfig.xml

@@ -9,7 +9,7 @@
     <javaModelGenerator targetPackage="com.goafanti.common.model" targetProject="kede-server" />
     <sqlMapGenerator targetPackage="com.goafanti.common.mapper" targetProject="kede-server" />
     <javaClientGenerator  targetPackage="com.goafanti.common.dao"  type="XMLMAPPER" targetProject="kede-server"  />
-    <table schema="aft" tableName="personnel_dossier"/>
+    <table schema="aft" tableName="personnel_promotion"/>
     <!-- 如果改动 t_order_task表,记得修改修改接口,不然会导致服务器无法启动 -->
   </context>
 </generatorConfiguration>

+ 96 - 0
src/main/java/com/goafanti/common/dao/PersonnelContactMapper.java

@@ -0,0 +1,96 @@
+package com.goafanti.common.dao;
+
+import com.goafanti.common.model.PersonnelContact;
+import com.goafanti.common.model.PersonnelContactExample;
+import java.util.List;
+import org.apache.ibatis.annotations.Param;
+
+public interface PersonnelContactMapper {
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table personnel_contact
+     *
+     * @mbg.generated Fri Apr 24 10:48:50 CST 2020
+     */
+    long countByExample(PersonnelContactExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table personnel_contact
+     *
+     * @mbg.generated Fri Apr 24 10:48:50 CST 2020
+     */
+    int deleteByExample(PersonnelContactExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table personnel_contact
+     *
+     * @mbg.generated Fri Apr 24 10:48:50 CST 2020
+     */
+    int deleteByPrimaryKey(Integer id);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table personnel_contact
+     *
+     * @mbg.generated Fri Apr 24 10:48:50 CST 2020
+     */
+    int insert(PersonnelContact record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table personnel_contact
+     *
+     * @mbg.generated Fri Apr 24 10:48:50 CST 2020
+     */
+    int insertSelective(PersonnelContact record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table personnel_contact
+     *
+     * @mbg.generated Fri Apr 24 10:48:50 CST 2020
+     */
+    List<PersonnelContact> selectByExample(PersonnelContactExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table personnel_contact
+     *
+     * @mbg.generated Fri Apr 24 10:48:50 CST 2020
+     */
+    PersonnelContact selectByPrimaryKey(Integer id);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table personnel_contact
+     *
+     * @mbg.generated Fri Apr 24 10:48:50 CST 2020
+     */
+    int updateByExampleSelective(@Param("record") PersonnelContact record, @Param("example") PersonnelContactExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table personnel_contact
+     *
+     * @mbg.generated Fri Apr 24 10:48:50 CST 2020
+     */
+    int updateByExample(@Param("record") PersonnelContact record, @Param("example") PersonnelContactExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table personnel_contact
+     *
+     * @mbg.generated Fri Apr 24 10:48:50 CST 2020
+     */
+    int updateByPrimaryKeySelective(PersonnelContact record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table personnel_contact
+     *
+     * @mbg.generated Fri Apr 24 10:48:50 CST 2020
+     */
+    int updateByPrimaryKey(PersonnelContact record);
+}

+ 96 - 0
src/main/java/com/goafanti/common/dao/PersonnelEntryMapper.java

@@ -0,0 +1,96 @@
+package com.goafanti.common.dao;
+
+import com.goafanti.common.model.PersonnelEntry;
+import com.goafanti.common.model.PersonnelEntryExample;
+import java.util.List;
+import org.apache.ibatis.annotations.Param;
+
+public interface PersonnelEntryMapper {
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table personnel_entry
+     *
+     * @mbg.generated Fri Apr 24 11:14:15 CST 2020
+     */
+    long countByExample(PersonnelEntryExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table personnel_entry
+     *
+     * @mbg.generated Fri Apr 24 11:14:15 CST 2020
+     */
+    int deleteByExample(PersonnelEntryExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table personnel_entry
+     *
+     * @mbg.generated Fri Apr 24 11:14:15 CST 2020
+     */
+    int deleteByPrimaryKey(Integer id);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table personnel_entry
+     *
+     * @mbg.generated Fri Apr 24 11:14:15 CST 2020
+     */
+    int insert(PersonnelEntry record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table personnel_entry
+     *
+     * @mbg.generated Fri Apr 24 11:14:15 CST 2020
+     */
+    int insertSelective(PersonnelEntry record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table personnel_entry
+     *
+     * @mbg.generated Fri Apr 24 11:14:15 CST 2020
+     */
+    List<PersonnelEntry> selectByExample(PersonnelEntryExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table personnel_entry
+     *
+     * @mbg.generated Fri Apr 24 11:14:15 CST 2020
+     */
+    PersonnelEntry selectByPrimaryKey(Integer id);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table personnel_entry
+     *
+     * @mbg.generated Fri Apr 24 11:14:15 CST 2020
+     */
+    int updateByExampleSelective(@Param("record") PersonnelEntry record, @Param("example") PersonnelEntryExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table personnel_entry
+     *
+     * @mbg.generated Fri Apr 24 11:14:15 CST 2020
+     */
+    int updateByExample(@Param("record") PersonnelEntry record, @Param("example") PersonnelEntryExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table personnel_entry
+     *
+     * @mbg.generated Fri Apr 24 11:14:15 CST 2020
+     */
+    int updateByPrimaryKeySelective(PersonnelEntry record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table personnel_entry
+     *
+     * @mbg.generated Fri Apr 24 11:14:15 CST 2020
+     */
+    int updateByPrimaryKey(PersonnelEntry record);
+}

+ 96 - 0
src/main/java/com/goafanti/common/dao/PersonnelPromotionMapper.java

@@ -0,0 +1,96 @@
+package com.goafanti.common.dao;
+
+import com.goafanti.common.model.PersonnelPromotion;
+import com.goafanti.common.model.PersonnelPromotionExample;
+import java.util.List;
+import org.apache.ibatis.annotations.Param;
+
+public interface PersonnelPromotionMapper {
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table personnel_promotion
+     *
+     * @mbg.generated Fri Apr 24 11:38:17 CST 2020
+     */
+    long countByExample(PersonnelPromotionExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table personnel_promotion
+     *
+     * @mbg.generated Fri Apr 24 11:38:17 CST 2020
+     */
+    int deleteByExample(PersonnelPromotionExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table personnel_promotion
+     *
+     * @mbg.generated Fri Apr 24 11:38:17 CST 2020
+     */
+    int deleteByPrimaryKey(Integer id);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table personnel_promotion
+     *
+     * @mbg.generated Fri Apr 24 11:38:17 CST 2020
+     */
+    int insert(PersonnelPromotion record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table personnel_promotion
+     *
+     * @mbg.generated Fri Apr 24 11:38:17 CST 2020
+     */
+    int insertSelective(PersonnelPromotion record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table personnel_promotion
+     *
+     * @mbg.generated Fri Apr 24 11:38:17 CST 2020
+     */
+    List<PersonnelPromotion> selectByExample(PersonnelPromotionExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table personnel_promotion
+     *
+     * @mbg.generated Fri Apr 24 11:38:17 CST 2020
+     */
+    PersonnelPromotion selectByPrimaryKey(Integer id);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table personnel_promotion
+     *
+     * @mbg.generated Fri Apr 24 11:38:17 CST 2020
+     */
+    int updateByExampleSelective(@Param("record") PersonnelPromotion record, @Param("example") PersonnelPromotionExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table personnel_promotion
+     *
+     * @mbg.generated Fri Apr 24 11:38:17 CST 2020
+     */
+    int updateByExample(@Param("record") PersonnelPromotion record, @Param("example") PersonnelPromotionExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table personnel_promotion
+     *
+     * @mbg.generated Fri Apr 24 11:38:17 CST 2020
+     */
+    int updateByPrimaryKeySelective(PersonnelPromotion record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table personnel_promotion
+     *
+     * @mbg.generated Fri Apr 24 11:38:17 CST 2020
+     */
+    int updateByPrimaryKey(PersonnelPromotion record);
+}

+ 286 - 0
src/main/java/com/goafanti/common/mapper/PersonnelContactMapper.xml

@@ -0,0 +1,286 @@
+<?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.goafanti.common.dao.PersonnelContactMapper">
+  <resultMap id="BaseResultMap" type="com.goafanti.common.model.PersonnelContact">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Fri Apr 24 10:48:50 CST 2020.
+    -->
+    <id column="id" jdbcType="INTEGER" property="id" />
+    <result column="pd_id" jdbcType="INTEGER" property="pdId" />
+    <result column="emergency_contact" jdbcType="VARCHAR" property="emergencyContact" />
+    <result column="emergency_mobile" jdbcType="VARCHAR" property="emergencyMobile" />
+    <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
+  </resultMap>
+  <sql id="Example_Where_Clause">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Fri Apr 24 10:48:50 CST 2020.
+    -->
+    <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.
+      This element was generated on Fri Apr 24 10:48:50 CST 2020.
+    -->
+    <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.
+      This element was generated on Fri Apr 24 10:48:50 CST 2020.
+    -->
+    id, pd_id, emergency_contact, emergency_mobile, create_time
+  </sql>
+  <select id="selectByExample" parameterType="com.goafanti.common.model.PersonnelContactExample" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Fri Apr 24 10:48:50 CST 2020.
+    -->
+    select
+    <if test="distinct">
+      distinct
+    </if>
+    <include refid="Base_Column_List" />
+    from personnel_contact
+    <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.Integer" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Fri Apr 24 10:48:50 CST 2020.
+    -->
+    select 
+    <include refid="Base_Column_List" />
+    from personnel_contact
+    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.
+      This element was generated on Fri Apr 24 10:48:50 CST 2020.
+    -->
+    delete from personnel_contact
+    where id = #{id,jdbcType=INTEGER}
+  </delete>
+  <delete id="deleteByExample" parameterType="com.goafanti.common.model.PersonnelContactExample">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Fri Apr 24 10:48:50 CST 2020.
+    -->
+    delete from personnel_contact
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </delete>
+  <insert id="insert" parameterType="com.goafanti.common.model.PersonnelContact">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Fri Apr 24 10:48:50 CST 2020.
+    -->
+    insert into personnel_contact (id, pd_id, emergency_contact, 
+      emergency_mobile, create_time)
+    values (#{id,jdbcType=INTEGER}, #{pdId,jdbcType=INTEGER}, #{emergencyContact,jdbcType=VARCHAR}, 
+      #{emergencyMobile,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP})
+  </insert>
+  <insert id="insertSelective" parameterType="com.goafanti.common.model.PersonnelContact">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Fri Apr 24 10:48:50 CST 2020.
+    -->
+    insert into personnel_contact
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="id != null">
+        id,
+      </if>
+      <if test="pdId != null">
+        pd_id,
+      </if>
+      <if test="emergencyContact != null">
+        emergency_contact,
+      </if>
+      <if test="emergencyMobile != null">
+        emergency_mobile,
+      </if>
+      <if test="createTime != null">
+        create_time,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="id != null">
+        #{id,jdbcType=INTEGER},
+      </if>
+      <if test="pdId != null">
+        #{pdId,jdbcType=INTEGER},
+      </if>
+      <if test="emergencyContact != null">
+        #{emergencyContact,jdbcType=VARCHAR},
+      </if>
+      <if test="emergencyMobile != null">
+        #{emergencyMobile,jdbcType=VARCHAR},
+      </if>
+      <if test="createTime != null">
+        #{createTime,jdbcType=TIMESTAMP},
+      </if>
+    </trim>
+  </insert>
+  <select id="countByExample" parameterType="com.goafanti.common.model.PersonnelContactExample" resultType="java.lang.Long">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Fri Apr 24 10:48:50 CST 2020.
+    -->
+    select count(*) from personnel_contact
+    <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.
+      This element was generated on Fri Apr 24 10:48:50 CST 2020.
+    -->
+    update personnel_contact
+    <set>
+      <if test="record.id != null">
+        id = #{record.id,jdbcType=INTEGER},
+      </if>
+      <if test="record.pdId != null">
+        pd_id = #{record.pdId,jdbcType=INTEGER},
+      </if>
+      <if test="record.emergencyContact != null">
+        emergency_contact = #{record.emergencyContact,jdbcType=VARCHAR},
+      </if>
+      <if test="record.emergencyMobile != null">
+        emergency_mobile = #{record.emergencyMobile,jdbcType=VARCHAR},
+      </if>
+      <if test="record.createTime != null">
+        create_time = #{record.createTime,jdbcType=TIMESTAMP},
+      </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.
+      This element was generated on Fri Apr 24 10:48:50 CST 2020.
+    -->
+    update personnel_contact
+    set id = #{record.id,jdbcType=INTEGER},
+      pd_id = #{record.pdId,jdbcType=INTEGER},
+      emergency_contact = #{record.emergencyContact,jdbcType=VARCHAR},
+      emergency_mobile = #{record.emergencyMobile,jdbcType=VARCHAR},
+      create_time = #{record.createTime,jdbcType=TIMESTAMP}
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.PersonnelContact">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Fri Apr 24 10:48:50 CST 2020.
+    -->
+    update personnel_contact
+    <set>
+      <if test="pdId != null">
+        pd_id = #{pdId,jdbcType=INTEGER},
+      </if>
+      <if test="emergencyContact != null">
+        emergency_contact = #{emergencyContact,jdbcType=VARCHAR},
+      </if>
+      <if test="emergencyMobile != null">
+        emergency_mobile = #{emergencyMobile,jdbcType=VARCHAR},
+      </if>
+      <if test="createTime != null">
+        create_time = #{createTime,jdbcType=TIMESTAMP},
+      </if>
+    </set>
+    where id = #{id,jdbcType=INTEGER}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.goafanti.common.model.PersonnelContact">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Fri Apr 24 10:48:50 CST 2020.
+    -->
+    update personnel_contact
+    set pd_id = #{pdId,jdbcType=INTEGER},
+      emergency_contact = #{emergencyContact,jdbcType=VARCHAR},
+      emergency_mobile = #{emergencyMobile,jdbcType=VARCHAR},
+      create_time = #{createTime,jdbcType=TIMESTAMP}
+    where id = #{id,jdbcType=INTEGER}
+  </update>
+</mapper>

+ 350 - 0
src/main/java/com/goafanti/common/mapper/PersonnelEntryMapper.xml

@@ -0,0 +1,350 @@
+<?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.goafanti.common.dao.PersonnelEntryMapper">
+  <resultMap id="BaseResultMap" type="com.goafanti.common.model.PersonnelEntry">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Fri Apr 24 11:14:15 CST 2020.
+    -->
+    <id column="id" jdbcType="INTEGER" property="id" />
+    <result column="school" jdbcType="VARCHAR" property="school" />
+    <result column="education" jdbcType="VARCHAR" property="education" />
+    <result column="major" jdbcType="VARCHAR" property="major" />
+    <result column="title" jdbcType="VARCHAR" property="title" />
+    <result column="entry_remarks" jdbcType="VARCHAR" property="entryRemarks" />
+    <result column="annex_url" jdbcType="VARCHAR" property="annexUrl" />
+    <result column="annex_name" jdbcType="VARCHAR" property="annexName" />
+    <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
+  </resultMap>
+  <sql id="Example_Where_Clause">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Fri Apr 24 11:14:15 CST 2020.
+    -->
+    <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.
+      This element was generated on Fri Apr 24 11:14:15 CST 2020.
+    -->
+    <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.
+      This element was generated on Fri Apr 24 11:14:15 CST 2020.
+    -->
+    id, school, education, major, title, entry_remarks, annex_url, annex_name, create_time
+  </sql>
+  <select id="selectByExample" parameterType="com.goafanti.common.model.PersonnelEntryExample" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Fri Apr 24 11:14:15 CST 2020.
+    -->
+    select
+    <if test="distinct">
+      distinct
+    </if>
+    <include refid="Base_Column_List" />
+    from personnel_entry
+    <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.Integer" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Fri Apr 24 11:14:15 CST 2020.
+    -->
+    select 
+    <include refid="Base_Column_List" />
+    from personnel_entry
+    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.
+      This element was generated on Fri Apr 24 11:14:15 CST 2020.
+    -->
+    delete from personnel_entry
+    where id = #{id,jdbcType=INTEGER}
+  </delete>
+  <delete id="deleteByExample" parameterType="com.goafanti.common.model.PersonnelEntryExample">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Fri Apr 24 11:14:15 CST 2020.
+    -->
+    delete from personnel_entry
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </delete>
+  <insert id="insert" parameterType="com.goafanti.common.model.PersonnelEntry">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Fri Apr 24 11:14:15 CST 2020.
+    -->
+    insert into personnel_entry (id, school, education, 
+      major, title, entry_remarks, 
+      annex_url, annex_name, create_time
+      )
+    values (#{id,jdbcType=INTEGER}, #{school,jdbcType=VARCHAR}, #{education,jdbcType=VARCHAR}, 
+      #{major,jdbcType=VARCHAR}, #{title,jdbcType=VARCHAR}, #{entryRemarks,jdbcType=VARCHAR}, 
+      #{annexUrl,jdbcType=VARCHAR}, #{annexName,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}
+      )
+  </insert>
+  <insert id="insertSelective" parameterType="com.goafanti.common.model.PersonnelEntry">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Fri Apr 24 11:14:15 CST 2020.
+    -->
+    insert into personnel_entry
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="id != null">
+        id,
+      </if>
+      <if test="school != null">
+        school,
+      </if>
+      <if test="education != null">
+        education,
+      </if>
+      <if test="major != null">
+        major,
+      </if>
+      <if test="title != null">
+        title,
+      </if>
+      <if test="entryRemarks != null">
+        entry_remarks,
+      </if>
+      <if test="annexUrl != null">
+        annex_url,
+      </if>
+      <if test="annexName != null">
+        annex_name,
+      </if>
+      <if test="createTime != null">
+        create_time,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="id != null">
+        #{id,jdbcType=INTEGER},
+      </if>
+      <if test="school != null">
+        #{school,jdbcType=VARCHAR},
+      </if>
+      <if test="education != null">
+        #{education,jdbcType=VARCHAR},
+      </if>
+      <if test="major != null">
+        #{major,jdbcType=VARCHAR},
+      </if>
+      <if test="title != null">
+        #{title,jdbcType=VARCHAR},
+      </if>
+      <if test="entryRemarks != null">
+        #{entryRemarks,jdbcType=VARCHAR},
+      </if>
+      <if test="annexUrl != null">
+        #{annexUrl,jdbcType=VARCHAR},
+      </if>
+      <if test="annexName != null">
+        #{annexName,jdbcType=VARCHAR},
+      </if>
+      <if test="createTime != null">
+        #{createTime,jdbcType=TIMESTAMP},
+      </if>
+    </trim>
+  </insert>
+  <select id="countByExample" parameterType="com.goafanti.common.model.PersonnelEntryExample" resultType="java.lang.Long">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Fri Apr 24 11:14:15 CST 2020.
+    -->
+    select count(*) from personnel_entry
+    <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.
+      This element was generated on Fri Apr 24 11:14:15 CST 2020.
+    -->
+    update personnel_entry
+    <set>
+      <if test="record.id != null">
+        id = #{record.id,jdbcType=INTEGER},
+      </if>
+      <if test="record.school != null">
+        school = #{record.school,jdbcType=VARCHAR},
+      </if>
+      <if test="record.education != null">
+        education = #{record.education,jdbcType=VARCHAR},
+      </if>
+      <if test="record.major != null">
+        major = #{record.major,jdbcType=VARCHAR},
+      </if>
+      <if test="record.title != null">
+        title = #{record.title,jdbcType=VARCHAR},
+      </if>
+      <if test="record.entryRemarks != null">
+        entry_remarks = #{record.entryRemarks,jdbcType=VARCHAR},
+      </if>
+      <if test="record.annexUrl != null">
+        annex_url = #{record.annexUrl,jdbcType=VARCHAR},
+      </if>
+      <if test="record.annexName != null">
+        annex_name = #{record.annexName,jdbcType=VARCHAR},
+      </if>
+      <if test="record.createTime != null">
+        create_time = #{record.createTime,jdbcType=TIMESTAMP},
+      </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.
+      This element was generated on Fri Apr 24 11:14:15 CST 2020.
+    -->
+    update personnel_entry
+    set id = #{record.id,jdbcType=INTEGER},
+      school = #{record.school,jdbcType=VARCHAR},
+      education = #{record.education,jdbcType=VARCHAR},
+      major = #{record.major,jdbcType=VARCHAR},
+      title = #{record.title,jdbcType=VARCHAR},
+      entry_remarks = #{record.entryRemarks,jdbcType=VARCHAR},
+      annex_url = #{record.annexUrl,jdbcType=VARCHAR},
+      annex_name = #{record.annexName,jdbcType=VARCHAR},
+      create_time = #{record.createTime,jdbcType=TIMESTAMP}
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.PersonnelEntry">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Fri Apr 24 11:14:15 CST 2020.
+    -->
+    update personnel_entry
+    <set>
+      <if test="school != null">
+        school = #{school,jdbcType=VARCHAR},
+      </if>
+      <if test="education != null">
+        education = #{education,jdbcType=VARCHAR},
+      </if>
+      <if test="major != null">
+        major = #{major,jdbcType=VARCHAR},
+      </if>
+      <if test="title != null">
+        title = #{title,jdbcType=VARCHAR},
+      </if>
+      <if test="entryRemarks != null">
+        entry_remarks = #{entryRemarks,jdbcType=VARCHAR},
+      </if>
+      <if test="annexUrl != null">
+        annex_url = #{annexUrl,jdbcType=VARCHAR},
+      </if>
+      <if test="annexName != null">
+        annex_name = #{annexName,jdbcType=VARCHAR},
+      </if>
+      <if test="createTime != null">
+        create_time = #{createTime,jdbcType=TIMESTAMP},
+      </if>
+    </set>
+    where id = #{id,jdbcType=INTEGER}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.goafanti.common.model.PersonnelEntry">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Fri Apr 24 11:14:15 CST 2020.
+    -->
+    update personnel_entry
+    set school = #{school,jdbcType=VARCHAR},
+      education = #{education,jdbcType=VARCHAR},
+      major = #{major,jdbcType=VARCHAR},
+      title = #{title,jdbcType=VARCHAR},
+      entry_remarks = #{entryRemarks,jdbcType=VARCHAR},
+      annex_url = #{annexUrl,jdbcType=VARCHAR},
+      annex_name = #{annexName,jdbcType=VARCHAR},
+      create_time = #{createTime,jdbcType=TIMESTAMP}
+    where id = #{id,jdbcType=INTEGER}
+  </update>
+</mapper>

+ 351 - 0
src/main/java/com/goafanti/common/mapper/PersonnelPromotionMapper.xml

@@ -0,0 +1,351 @@
+<?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.goafanti.common.dao.PersonnelPromotionMapper">
+  <resultMap id="BaseResultMap" type="com.goafanti.common.model.PersonnelPromotion">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Fri Apr 24 11:38:17 CST 2020.
+    -->
+    <id column="id" jdbcType="INTEGER" property="id" />
+    <result column="pd_id" jdbcType="INTEGER" property="pdId" />
+    <result column="old_jobs" jdbcType="VARCHAR" property="oldJobs" />
+    <result column="new_jobs" jdbcType="VARCHAR" property="newJobs" />
+    <result column="promotion_time" jdbcType="TIMESTAMP" property="promotionTime" />
+    <result column="promotion_remarks" jdbcType="VARCHAR" property="promotionRemarks" />
+    <result column="annex_url" jdbcType="VARCHAR" property="annexUrl" />
+    <result column="annex_name" jdbcType="VARCHAR" property="annexName" />
+    <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
+  </resultMap>
+  <sql id="Example_Where_Clause">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Fri Apr 24 11:38:17 CST 2020.
+    -->
+    <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.
+      This element was generated on Fri Apr 24 11:38:17 CST 2020.
+    -->
+    <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.
+      This element was generated on Fri Apr 24 11:38:17 CST 2020.
+    -->
+    id, pd_id, old_jobs, new_jobs, promotion_time, promotion_remarks, annex_url, annex_name, 
+    create_time
+  </sql>
+  <select id="selectByExample" parameterType="com.goafanti.common.model.PersonnelPromotionExample" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Fri Apr 24 11:38:17 CST 2020.
+    -->
+    select
+    <if test="distinct">
+      distinct
+    </if>
+    <include refid="Base_Column_List" />
+    from personnel_promotion
+    <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.Integer" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Fri Apr 24 11:38:17 CST 2020.
+    -->
+    select 
+    <include refid="Base_Column_List" />
+    from personnel_promotion
+    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.
+      This element was generated on Fri Apr 24 11:38:17 CST 2020.
+    -->
+    delete from personnel_promotion
+    where id = #{id,jdbcType=INTEGER}
+  </delete>
+  <delete id="deleteByExample" parameterType="com.goafanti.common.model.PersonnelPromotionExample">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Fri Apr 24 11:38:17 CST 2020.
+    -->
+    delete from personnel_promotion
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </delete>
+  <insert id="insert" parameterType="com.goafanti.common.model.PersonnelPromotion">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Fri Apr 24 11:38:17 CST 2020.
+    -->
+    insert into personnel_promotion (id, pd_id, old_jobs, 
+      new_jobs, promotion_time, promotion_remarks, 
+      annex_url, annex_name, create_time
+      )
+    values (#{id,jdbcType=INTEGER}, #{pdId,jdbcType=INTEGER}, #{oldJobs,jdbcType=VARCHAR}, 
+      #{newJobs,jdbcType=VARCHAR}, #{promotionTime,jdbcType=TIMESTAMP}, #{promotionRemarks,jdbcType=VARCHAR}, 
+      #{annexUrl,jdbcType=VARCHAR}, #{annexName,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}
+      )
+  </insert>
+  <insert id="insertSelective" parameterType="com.goafanti.common.model.PersonnelPromotion">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Fri Apr 24 11:38:17 CST 2020.
+    -->
+    insert into personnel_promotion
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="id != null">
+        id,
+      </if>
+      <if test="pdId != null">
+        pd_id,
+      </if>
+      <if test="oldJobs != null">
+        old_jobs,
+      </if>
+      <if test="newJobs != null">
+        new_jobs,
+      </if>
+      <if test="promotionTime != null">
+        promotion_time,
+      </if>
+      <if test="promotionRemarks != null">
+        promotion_remarks,
+      </if>
+      <if test="annexUrl != null">
+        annex_url,
+      </if>
+      <if test="annexName != null">
+        annex_name,
+      </if>
+      <if test="createTime != null">
+        create_time,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="id != null">
+        #{id,jdbcType=INTEGER},
+      </if>
+      <if test="pdId != null">
+        #{pdId,jdbcType=INTEGER},
+      </if>
+      <if test="oldJobs != null">
+        #{oldJobs,jdbcType=VARCHAR},
+      </if>
+      <if test="newJobs != null">
+        #{newJobs,jdbcType=VARCHAR},
+      </if>
+      <if test="promotionTime != null">
+        #{promotionTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="promotionRemarks != null">
+        #{promotionRemarks,jdbcType=VARCHAR},
+      </if>
+      <if test="annexUrl != null">
+        #{annexUrl,jdbcType=VARCHAR},
+      </if>
+      <if test="annexName != null">
+        #{annexName,jdbcType=VARCHAR},
+      </if>
+      <if test="createTime != null">
+        #{createTime,jdbcType=TIMESTAMP},
+      </if>
+    </trim>
+  </insert>
+  <select id="countByExample" parameterType="com.goafanti.common.model.PersonnelPromotionExample" resultType="java.lang.Long">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Fri Apr 24 11:38:17 CST 2020.
+    -->
+    select count(*) from personnel_promotion
+    <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.
+      This element was generated on Fri Apr 24 11:38:17 CST 2020.
+    -->
+    update personnel_promotion
+    <set>
+      <if test="record.id != null">
+        id = #{record.id,jdbcType=INTEGER},
+      </if>
+      <if test="record.pdId != null">
+        pd_id = #{record.pdId,jdbcType=INTEGER},
+      </if>
+      <if test="record.oldJobs != null">
+        old_jobs = #{record.oldJobs,jdbcType=VARCHAR},
+      </if>
+      <if test="record.newJobs != null">
+        new_jobs = #{record.newJobs,jdbcType=VARCHAR},
+      </if>
+      <if test="record.promotionTime != null">
+        promotion_time = #{record.promotionTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="record.promotionRemarks != null">
+        promotion_remarks = #{record.promotionRemarks,jdbcType=VARCHAR},
+      </if>
+      <if test="record.annexUrl != null">
+        annex_url = #{record.annexUrl,jdbcType=VARCHAR},
+      </if>
+      <if test="record.annexName != null">
+        annex_name = #{record.annexName,jdbcType=VARCHAR},
+      </if>
+      <if test="record.createTime != null">
+        create_time = #{record.createTime,jdbcType=TIMESTAMP},
+      </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.
+      This element was generated on Fri Apr 24 11:38:17 CST 2020.
+    -->
+    update personnel_promotion
+    set id = #{record.id,jdbcType=INTEGER},
+      pd_id = #{record.pdId,jdbcType=INTEGER},
+      old_jobs = #{record.oldJobs,jdbcType=VARCHAR},
+      new_jobs = #{record.newJobs,jdbcType=VARCHAR},
+      promotion_time = #{record.promotionTime,jdbcType=TIMESTAMP},
+      promotion_remarks = #{record.promotionRemarks,jdbcType=VARCHAR},
+      annex_url = #{record.annexUrl,jdbcType=VARCHAR},
+      annex_name = #{record.annexName,jdbcType=VARCHAR},
+      create_time = #{record.createTime,jdbcType=TIMESTAMP}
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.PersonnelPromotion">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Fri Apr 24 11:38:17 CST 2020.
+    -->
+    update personnel_promotion
+    <set>
+      <if test="pdId != null">
+        pd_id = #{pdId,jdbcType=INTEGER},
+      </if>
+      <if test="oldJobs != null">
+        old_jobs = #{oldJobs,jdbcType=VARCHAR},
+      </if>
+      <if test="newJobs != null">
+        new_jobs = #{newJobs,jdbcType=VARCHAR},
+      </if>
+      <if test="promotionTime != null">
+        promotion_time = #{promotionTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="promotionRemarks != null">
+        promotion_remarks = #{promotionRemarks,jdbcType=VARCHAR},
+      </if>
+      <if test="annexUrl != null">
+        annex_url = #{annexUrl,jdbcType=VARCHAR},
+      </if>
+      <if test="annexName != null">
+        annex_name = #{annexName,jdbcType=VARCHAR},
+      </if>
+      <if test="createTime != null">
+        create_time = #{createTime,jdbcType=TIMESTAMP},
+      </if>
+    </set>
+    where id = #{id,jdbcType=INTEGER}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.goafanti.common.model.PersonnelPromotion">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Fri Apr 24 11:38:17 CST 2020.
+    -->
+    update personnel_promotion
+    set pd_id = #{pdId,jdbcType=INTEGER},
+      old_jobs = #{oldJobs,jdbcType=VARCHAR},
+      new_jobs = #{newJobs,jdbcType=VARCHAR},
+      promotion_time = #{promotionTime,jdbcType=TIMESTAMP},
+      promotion_remarks = #{promotionRemarks,jdbcType=VARCHAR},
+      annex_url = #{annexUrl,jdbcType=VARCHAR},
+      annex_name = #{annexName,jdbcType=VARCHAR},
+      create_time = #{createTime,jdbcType=TIMESTAMP}
+    where id = #{id,jdbcType=INTEGER}
+  </update>
+</mapper>

+ 170 - 0
src/main/java/com/goafanti/common/model/PersonnelContact.java

@@ -0,0 +1,170 @@
+package com.goafanti.common.model;
+
+import java.util.Date;
+
+public class PersonnelContact {
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column personnel_contact.id
+     *
+     * @mbg.generated Fri Apr 24 10:48:50 CST 2020
+     */
+    private Integer id;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column personnel_contact.pd_id
+     *
+     * @mbg.generated Fri Apr 24 10:48:50 CST 2020
+     */
+    private Integer pdId;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column personnel_contact.emergency_contact
+     *
+     * @mbg.generated Fri Apr 24 10:48:50 CST 2020
+     */
+    private String emergencyContact;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column personnel_contact.emergency_mobile
+     *
+     * @mbg.generated Fri Apr 24 10:48:50 CST 2020
+     */
+    private String emergencyMobile;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column personnel_contact.create_time
+     *
+     * @mbg.generated Fri Apr 24 10:48:50 CST 2020
+     */
+    private Date createTime;
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column personnel_contact.id
+     *
+     * @return the value of personnel_contact.id
+     *
+     * @mbg.generated Fri Apr 24 10:48:50 CST 2020
+     */
+    public Integer getId() {
+        return id;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column personnel_contact.id
+     *
+     * @param id the value for personnel_contact.id
+     *
+     * @mbg.generated Fri Apr 24 10:48:50 CST 2020
+     */
+    public void setId(Integer id) {
+        this.id = id;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column personnel_contact.pd_id
+     *
+     * @return the value of personnel_contact.pd_id
+     *
+     * @mbg.generated Fri Apr 24 10:48:50 CST 2020
+     */
+    public Integer getPdId() {
+        return pdId;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column personnel_contact.pd_id
+     *
+     * @param pdId the value for personnel_contact.pd_id
+     *
+     * @mbg.generated Fri Apr 24 10:48:50 CST 2020
+     */
+    public void setPdId(Integer pdId) {
+        this.pdId = pdId;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column personnel_contact.emergency_contact
+     *
+     * @return the value of personnel_contact.emergency_contact
+     *
+     * @mbg.generated Fri Apr 24 10:48:50 CST 2020
+     */
+    public String getEmergencyContact() {
+        return emergencyContact;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column personnel_contact.emergency_contact
+     *
+     * @param emergencyContact the value for personnel_contact.emergency_contact
+     *
+     * @mbg.generated Fri Apr 24 10:48:50 CST 2020
+     */
+    public void setEmergencyContact(String emergencyContact) {
+        this.emergencyContact = emergencyContact;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column personnel_contact.emergency_mobile
+     *
+     * @return the value of personnel_contact.emergency_mobile
+     *
+     * @mbg.generated Fri Apr 24 10:48:50 CST 2020
+     */
+    public String getEmergencyMobile() {
+        return emergencyMobile;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column personnel_contact.emergency_mobile
+     *
+     * @param emergencyMobile the value for personnel_contact.emergency_mobile
+     *
+     * @mbg.generated Fri Apr 24 10:48:50 CST 2020
+     */
+    public void setEmergencyMobile(String emergencyMobile) {
+        this.emergencyMobile = emergencyMobile;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column personnel_contact.create_time
+     *
+     * @return the value of personnel_contact.create_time
+     *
+     * @mbg.generated Fri Apr 24 10:48:50 CST 2020
+     */
+    public Date getCreateTime() {
+        return createTime;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column personnel_contact.create_time
+     *
+     * @param createTime the value for personnel_contact.create_time
+     *
+     * @mbg.generated Fri Apr 24 10:48:50 CST 2020
+     */
+    public void setCreateTime(Date createTime) {
+        this.createTime = createTime;
+    }
+}

+ 623 - 0
src/main/java/com/goafanti/common/model/PersonnelContactExample.java

@@ -0,0 +1,623 @@
+package com.goafanti.common.model;
+
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+
+public class PersonnelContactExample {
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table personnel_contact
+     *
+     * @mbg.generated Fri Apr 24 10:48:50 CST 2020
+     */
+    protected String orderByClause;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table personnel_contact
+     *
+     * @mbg.generated Fri Apr 24 10:48:50 CST 2020
+     */
+    protected boolean distinct;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table personnel_contact
+     *
+     * @mbg.generated Fri Apr 24 10:48:50 CST 2020
+     */
+    protected List<Criteria> oredCriteria;
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table personnel_contact
+     *
+     * @mbg.generated Fri Apr 24 10:48:50 CST 2020
+     */
+    public PersonnelContactExample() {
+        oredCriteria = new ArrayList<Criteria>();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table personnel_contact
+     *
+     * @mbg.generated Fri Apr 24 10:48:50 CST 2020
+     */
+    public void setOrderByClause(String orderByClause) {
+        this.orderByClause = orderByClause;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table personnel_contact
+     *
+     * @mbg.generated Fri Apr 24 10:48:50 CST 2020
+     */
+    public String getOrderByClause() {
+        return orderByClause;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table personnel_contact
+     *
+     * @mbg.generated Fri Apr 24 10:48:50 CST 2020
+     */
+    public void setDistinct(boolean distinct) {
+        this.distinct = distinct;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table personnel_contact
+     *
+     * @mbg.generated Fri Apr 24 10:48:50 CST 2020
+     */
+    public boolean isDistinct() {
+        return distinct;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table personnel_contact
+     *
+     * @mbg.generated Fri Apr 24 10:48:50 CST 2020
+     */
+    public List<Criteria> getOredCriteria() {
+        return oredCriteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table personnel_contact
+     *
+     * @mbg.generated Fri Apr 24 10:48:50 CST 2020
+     */
+    public void or(Criteria criteria) {
+        oredCriteria.add(criteria);
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table personnel_contact
+     *
+     * @mbg.generated Fri Apr 24 10:48:50 CST 2020
+     */
+    public Criteria or() {
+        Criteria criteria = createCriteriaInternal();
+        oredCriteria.add(criteria);
+        return criteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table personnel_contact
+     *
+     * @mbg.generated Fri Apr 24 10:48:50 CST 2020
+     */
+    public Criteria createCriteria() {
+        Criteria criteria = createCriteriaInternal();
+        if (oredCriteria.size() == 0) {
+            oredCriteria.add(criteria);
+        }
+        return criteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table personnel_contact
+     *
+     * @mbg.generated Fri Apr 24 10:48:50 CST 2020
+     */
+    protected Criteria createCriteriaInternal() {
+        Criteria criteria = new Criteria();
+        return criteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table personnel_contact
+     *
+     * @mbg.generated Fri Apr 24 10:48:50 CST 2020
+     */
+    public void clear() {
+        oredCriteria.clear();
+        orderByClause = null;
+        distinct = false;
+    }
+
+    /**
+     * This class was generated by MyBatis Generator.
+     * This class corresponds to the database table personnel_contact
+     *
+     * @mbg.generated Fri Apr 24 10:48:50 CST 2020
+     */
+    protected abstract static class GeneratedCriteria {
+        protected List<Criterion> criteria;
+
+        protected GeneratedCriteria() {
+            super();
+            criteria = new ArrayList<Criterion>();
+        }
+
+        public boolean isValid() {
+            return criteria.size() > 0;
+        }
+
+        public List<Criterion> getAllCriteria() {
+            return criteria;
+        }
+
+        public List<Criterion> getCriteria() {
+            return criteria;
+        }
+
+        protected void addCriterion(String condition) {
+            if (condition == null) {
+                throw new RuntimeException("Value for condition cannot be null");
+            }
+            criteria.add(new Criterion(condition));
+        }
+
+        protected void addCriterion(String condition, Object value, String property) {
+            if (value == null) {
+                throw new RuntimeException("Value for " + property + " cannot be null");
+            }
+            criteria.add(new Criterion(condition, value));
+        }
+
+        protected void addCriterion(String condition, Object value1, Object value2, String property) {
+            if (value1 == null || value2 == null) {
+                throw new RuntimeException("Between values for " + property + " cannot be null");
+            }
+            criteria.add(new Criterion(condition, value1, value2));
+        }
+
+        public Criteria andIdIsNull() {
+            addCriterion("id is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdIsNotNull() {
+            addCriterion("id is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdEqualTo(Integer value) {
+            addCriterion("id =", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdNotEqualTo(Integer value) {
+            addCriterion("id <>", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdGreaterThan(Integer value) {
+            addCriterion("id >", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
+            addCriterion("id >=", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdLessThan(Integer value) {
+            addCriterion("id <", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdLessThanOrEqualTo(Integer value) {
+            addCriterion("id <=", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdIn(List<Integer> values) {
+            addCriterion("id in", values, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdNotIn(List<Integer> values) {
+            addCriterion("id not in", values, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdBetween(Integer value1, Integer value2) {
+            addCriterion("id between", value1, value2, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdNotBetween(Integer value1, Integer value2) {
+            addCriterion("id not between", value1, value2, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andPdIdIsNull() {
+            addCriterion("pd_id is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPdIdIsNotNull() {
+            addCriterion("pd_id is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPdIdEqualTo(Integer value) {
+            addCriterion("pd_id =", value, "pdId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPdIdNotEqualTo(Integer value) {
+            addCriterion("pd_id <>", value, "pdId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPdIdGreaterThan(Integer value) {
+            addCriterion("pd_id >", value, "pdId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPdIdGreaterThanOrEqualTo(Integer value) {
+            addCriterion("pd_id >=", value, "pdId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPdIdLessThan(Integer value) {
+            addCriterion("pd_id <", value, "pdId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPdIdLessThanOrEqualTo(Integer value) {
+            addCriterion("pd_id <=", value, "pdId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPdIdIn(List<Integer> values) {
+            addCriterion("pd_id in", values, "pdId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPdIdNotIn(List<Integer> values) {
+            addCriterion("pd_id not in", values, "pdId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPdIdBetween(Integer value1, Integer value2) {
+            addCriterion("pd_id between", value1, value2, "pdId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPdIdNotBetween(Integer value1, Integer value2) {
+            addCriterion("pd_id not between", value1, value2, "pdId");
+            return (Criteria) this;
+        }
+
+        public Criteria andEmergencyContactIsNull() {
+            addCriterion("emergency_contact is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andEmergencyContactIsNotNull() {
+            addCriterion("emergency_contact is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andEmergencyContactEqualTo(String value) {
+            addCriterion("emergency_contact =", value, "emergencyContact");
+            return (Criteria) this;
+        }
+
+        public Criteria andEmergencyContactNotEqualTo(String value) {
+            addCriterion("emergency_contact <>", value, "emergencyContact");
+            return (Criteria) this;
+        }
+
+        public Criteria andEmergencyContactGreaterThan(String value) {
+            addCriterion("emergency_contact >", value, "emergencyContact");
+            return (Criteria) this;
+        }
+
+        public Criteria andEmergencyContactGreaterThanOrEqualTo(String value) {
+            addCriterion("emergency_contact >=", value, "emergencyContact");
+            return (Criteria) this;
+        }
+
+        public Criteria andEmergencyContactLessThan(String value) {
+            addCriterion("emergency_contact <", value, "emergencyContact");
+            return (Criteria) this;
+        }
+
+        public Criteria andEmergencyContactLessThanOrEqualTo(String value) {
+            addCriterion("emergency_contact <=", value, "emergencyContact");
+            return (Criteria) this;
+        }
+
+        public Criteria andEmergencyContactLike(String value) {
+            addCriterion("emergency_contact like", value, "emergencyContact");
+            return (Criteria) this;
+        }
+
+        public Criteria andEmergencyContactNotLike(String value) {
+            addCriterion("emergency_contact not like", value, "emergencyContact");
+            return (Criteria) this;
+        }
+
+        public Criteria andEmergencyContactIn(List<String> values) {
+            addCriterion("emergency_contact in", values, "emergencyContact");
+            return (Criteria) this;
+        }
+
+        public Criteria andEmergencyContactNotIn(List<String> values) {
+            addCriterion("emergency_contact not in", values, "emergencyContact");
+            return (Criteria) this;
+        }
+
+        public Criteria andEmergencyContactBetween(String value1, String value2) {
+            addCriterion("emergency_contact between", value1, value2, "emergencyContact");
+            return (Criteria) this;
+        }
+
+        public Criteria andEmergencyContactNotBetween(String value1, String value2) {
+            addCriterion("emergency_contact not between", value1, value2, "emergencyContact");
+            return (Criteria) this;
+        }
+
+        public Criteria andEmergencyMobileIsNull() {
+            addCriterion("emergency_mobile is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andEmergencyMobileIsNotNull() {
+            addCriterion("emergency_mobile is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andEmergencyMobileEqualTo(String value) {
+            addCriterion("emergency_mobile =", value, "emergencyMobile");
+            return (Criteria) this;
+        }
+
+        public Criteria andEmergencyMobileNotEqualTo(String value) {
+            addCriterion("emergency_mobile <>", value, "emergencyMobile");
+            return (Criteria) this;
+        }
+
+        public Criteria andEmergencyMobileGreaterThan(String value) {
+            addCriterion("emergency_mobile >", value, "emergencyMobile");
+            return (Criteria) this;
+        }
+
+        public Criteria andEmergencyMobileGreaterThanOrEqualTo(String value) {
+            addCriterion("emergency_mobile >=", value, "emergencyMobile");
+            return (Criteria) this;
+        }
+
+        public Criteria andEmergencyMobileLessThan(String value) {
+            addCriterion("emergency_mobile <", value, "emergencyMobile");
+            return (Criteria) this;
+        }
+
+        public Criteria andEmergencyMobileLessThanOrEqualTo(String value) {
+            addCriterion("emergency_mobile <=", value, "emergencyMobile");
+            return (Criteria) this;
+        }
+
+        public Criteria andEmergencyMobileLike(String value) {
+            addCriterion("emergency_mobile like", value, "emergencyMobile");
+            return (Criteria) this;
+        }
+
+        public Criteria andEmergencyMobileNotLike(String value) {
+            addCriterion("emergency_mobile not like", value, "emergencyMobile");
+            return (Criteria) this;
+        }
+
+        public Criteria andEmergencyMobileIn(List<String> values) {
+            addCriterion("emergency_mobile in", values, "emergencyMobile");
+            return (Criteria) this;
+        }
+
+        public Criteria andEmergencyMobileNotIn(List<String> values) {
+            addCriterion("emergency_mobile not in", values, "emergencyMobile");
+            return (Criteria) this;
+        }
+
+        public Criteria andEmergencyMobileBetween(String value1, String value2) {
+            addCriterion("emergency_mobile between", value1, value2, "emergencyMobile");
+            return (Criteria) this;
+        }
+
+        public Criteria andEmergencyMobileNotBetween(String value1, String value2) {
+            addCriterion("emergency_mobile not between", value1, value2, "emergencyMobile");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeIsNull() {
+            addCriterion("create_time is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeIsNotNull() {
+            addCriterion("create_time is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeEqualTo(Date value) {
+            addCriterion("create_time =", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeNotEqualTo(Date value) {
+            addCriterion("create_time <>", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeGreaterThan(Date value) {
+            addCriterion("create_time >", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
+            addCriterion("create_time >=", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeLessThan(Date value) {
+            addCriterion("create_time <", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
+            addCriterion("create_time <=", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeIn(List<Date> values) {
+            addCriterion("create_time in", values, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeNotIn(List<Date> values) {
+            addCriterion("create_time not in", values, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeBetween(Date value1, Date value2) {
+            addCriterion("create_time between", value1, value2, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
+            addCriterion("create_time not between", value1, value2, "createTime");
+            return (Criteria) this;
+        }
+    }
+
+    /**
+     * This class was generated by MyBatis Generator.
+     * This class corresponds to the database table personnel_contact
+     *
+     * @mbg.generated do_not_delete_during_merge Fri Apr 24 10:48:50 CST 2020
+     */
+    public static class Criteria extends GeneratedCriteria {
+
+        protected Criteria() {
+            super();
+        }
+    }
+
+    /**
+     * This class was generated by MyBatis Generator.
+     * This class corresponds to the database table personnel_contact
+     *
+     * @mbg.generated Fri Apr 24 10:48:50 CST 2020
+     */
+    public static class Criterion {
+        private String condition;
+
+        private Object value;
+
+        private Object secondValue;
+
+        private boolean noValue;
+
+        private boolean singleValue;
+
+        private boolean betweenValue;
+
+        private boolean listValue;
+
+        private String typeHandler;
+
+        public String getCondition() {
+            return condition;
+        }
+
+        public Object getValue() {
+            return value;
+        }
+
+        public Object getSecondValue() {
+            return secondValue;
+        }
+
+        public boolean isNoValue() {
+            return noValue;
+        }
+
+        public boolean isSingleValue() {
+            return singleValue;
+        }
+
+        public boolean isBetweenValue() {
+            return betweenValue;
+        }
+
+        public boolean isListValue() {
+            return listValue;
+        }
+
+        public String getTypeHandler() {
+            return typeHandler;
+        }
+
+        protected Criterion(String condition) {
+            super();
+            this.condition = condition;
+            this.typeHandler = null;
+            this.noValue = true;
+        }
+
+        protected Criterion(String condition, Object value, String typeHandler) {
+            super();
+            this.condition = condition;
+            this.value = value;
+            this.typeHandler = typeHandler;
+            if (value instanceof List<?>) {
+                this.listValue = true;
+            } else {
+                this.singleValue = true;
+            }
+        }
+
+        protected Criterion(String condition, Object value) {
+            this(condition, value, null);
+        }
+
+        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
+            super();
+            this.condition = condition;
+            this.value = value;
+            this.secondValue = secondValue;
+            this.typeHandler = typeHandler;
+            this.betweenValue = true;
+        }
+
+        protected Criterion(String condition, Object value, Object secondValue) {
+            this(condition, value, secondValue, null);
+        }
+    }
+}

+ 302 - 0
src/main/java/com/goafanti/common/model/PersonnelEntry.java

@@ -0,0 +1,302 @@
+package com.goafanti.common.model;
+
+import java.util.Date;
+
+public class PersonnelEntry {
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column personnel_entry.id
+     *
+     * @mbg.generated Fri Apr 24 11:14:15 CST 2020
+     */
+    private Integer id;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column personnel_entry.school
+     *
+     * @mbg.generated Fri Apr 24 11:14:15 CST 2020
+     */
+    private String school;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column personnel_entry.education
+     *
+     * @mbg.generated Fri Apr 24 11:14:15 CST 2020
+     */
+    private String education;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column personnel_entry.major
+     *
+     * @mbg.generated Fri Apr 24 11:14:15 CST 2020
+     */
+    private String major;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column personnel_entry.title
+     *
+     * @mbg.generated Fri Apr 24 11:14:15 CST 2020
+     */
+    private String title;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column personnel_entry.entry_remarks
+     *
+     * @mbg.generated Fri Apr 24 11:14:15 CST 2020
+     */
+    private String entryRemarks;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column personnel_entry.annex_url
+     *
+     * @mbg.generated Fri Apr 24 11:14:15 CST 2020
+     */
+    private String annexUrl;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column personnel_entry.annex_name
+     *
+     * @mbg.generated Fri Apr 24 11:14:15 CST 2020
+     */
+    private String annexName;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column personnel_entry.create_time
+     *
+     * @mbg.generated Fri Apr 24 11:14:15 CST 2020
+     */
+    private Date createTime;
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column personnel_entry.id
+     *
+     * @return the value of personnel_entry.id
+     *
+     * @mbg.generated Fri Apr 24 11:14:15 CST 2020
+     */
+    public Integer getId() {
+        return id;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column personnel_entry.id
+     *
+     * @param id the value for personnel_entry.id
+     *
+     * @mbg.generated Fri Apr 24 11:14:15 CST 2020
+     */
+    public void setId(Integer id) {
+        this.id = id;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column personnel_entry.school
+     *
+     * @return the value of personnel_entry.school
+     *
+     * @mbg.generated Fri Apr 24 11:14:15 CST 2020
+     */
+    public String getSchool() {
+        return school;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column personnel_entry.school
+     *
+     * @param school the value for personnel_entry.school
+     *
+     * @mbg.generated Fri Apr 24 11:14:15 CST 2020
+     */
+    public void setSchool(String school) {
+        this.school = school;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column personnel_entry.education
+     *
+     * @return the value of personnel_entry.education
+     *
+     * @mbg.generated Fri Apr 24 11:14:15 CST 2020
+     */
+    public String getEducation() {
+        return education;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column personnel_entry.education
+     *
+     * @param education the value for personnel_entry.education
+     *
+     * @mbg.generated Fri Apr 24 11:14:15 CST 2020
+     */
+    public void setEducation(String education) {
+        this.education = education;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column personnel_entry.major
+     *
+     * @return the value of personnel_entry.major
+     *
+     * @mbg.generated Fri Apr 24 11:14:15 CST 2020
+     */
+    public String getMajor() {
+        return major;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column personnel_entry.major
+     *
+     * @param major the value for personnel_entry.major
+     *
+     * @mbg.generated Fri Apr 24 11:14:15 CST 2020
+     */
+    public void setMajor(String major) {
+        this.major = major;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column personnel_entry.title
+     *
+     * @return the value of personnel_entry.title
+     *
+     * @mbg.generated Fri Apr 24 11:14:15 CST 2020
+     */
+    public String getTitle() {
+        return title;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column personnel_entry.title
+     *
+     * @param title the value for personnel_entry.title
+     *
+     * @mbg.generated Fri Apr 24 11:14:15 CST 2020
+     */
+    public void setTitle(String title) {
+        this.title = title;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column personnel_entry.entry_remarks
+     *
+     * @return the value of personnel_entry.entry_remarks
+     *
+     * @mbg.generated Fri Apr 24 11:14:15 CST 2020
+     */
+    public String getEntryRemarks() {
+        return entryRemarks;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column personnel_entry.entry_remarks
+     *
+     * @param entryRemarks the value for personnel_entry.entry_remarks
+     *
+     * @mbg.generated Fri Apr 24 11:14:15 CST 2020
+     */
+    public void setEntryRemarks(String entryRemarks) {
+        this.entryRemarks = entryRemarks;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column personnel_entry.annex_url
+     *
+     * @return the value of personnel_entry.annex_url
+     *
+     * @mbg.generated Fri Apr 24 11:14:15 CST 2020
+     */
+    public String getAnnexUrl() {
+        return annexUrl;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column personnel_entry.annex_url
+     *
+     * @param annexUrl the value for personnel_entry.annex_url
+     *
+     * @mbg.generated Fri Apr 24 11:14:15 CST 2020
+     */
+    public void setAnnexUrl(String annexUrl) {
+        this.annexUrl = annexUrl;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column personnel_entry.annex_name
+     *
+     * @return the value of personnel_entry.annex_name
+     *
+     * @mbg.generated Fri Apr 24 11:14:15 CST 2020
+     */
+    public String getAnnexName() {
+        return annexName;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column personnel_entry.annex_name
+     *
+     * @param annexName the value for personnel_entry.annex_name
+     *
+     * @mbg.generated Fri Apr 24 11:14:15 CST 2020
+     */
+    public void setAnnexName(String annexName) {
+        this.annexName = annexName;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column personnel_entry.create_time
+     *
+     * @return the value of personnel_entry.create_time
+     *
+     * @mbg.generated Fri Apr 24 11:14:15 CST 2020
+     */
+    public Date getCreateTime() {
+        return createTime;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column personnel_entry.create_time
+     *
+     * @param createTime the value for personnel_entry.create_time
+     *
+     * @mbg.generated Fri Apr 24 11:14:15 CST 2020
+     */
+    public void setCreateTime(Date createTime) {
+        this.createTime = createTime;
+    }
+}

+ 913 - 0
src/main/java/com/goafanti/common/model/PersonnelEntryExample.java

@@ -0,0 +1,913 @@
+package com.goafanti.common.model;
+
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+
+public class PersonnelEntryExample {
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table personnel_entry
+     *
+     * @mbg.generated Fri Apr 24 11:14:15 CST 2020
+     */
+    protected String orderByClause;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table personnel_entry
+     *
+     * @mbg.generated Fri Apr 24 11:14:15 CST 2020
+     */
+    protected boolean distinct;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table personnel_entry
+     *
+     * @mbg.generated Fri Apr 24 11:14:15 CST 2020
+     */
+    protected List<Criteria> oredCriteria;
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table personnel_entry
+     *
+     * @mbg.generated Fri Apr 24 11:14:15 CST 2020
+     */
+    public PersonnelEntryExample() {
+        oredCriteria = new ArrayList<Criteria>();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table personnel_entry
+     *
+     * @mbg.generated Fri Apr 24 11:14:15 CST 2020
+     */
+    public void setOrderByClause(String orderByClause) {
+        this.orderByClause = orderByClause;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table personnel_entry
+     *
+     * @mbg.generated Fri Apr 24 11:14:15 CST 2020
+     */
+    public String getOrderByClause() {
+        return orderByClause;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table personnel_entry
+     *
+     * @mbg.generated Fri Apr 24 11:14:15 CST 2020
+     */
+    public void setDistinct(boolean distinct) {
+        this.distinct = distinct;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table personnel_entry
+     *
+     * @mbg.generated Fri Apr 24 11:14:15 CST 2020
+     */
+    public boolean isDistinct() {
+        return distinct;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table personnel_entry
+     *
+     * @mbg.generated Fri Apr 24 11:14:15 CST 2020
+     */
+    public List<Criteria> getOredCriteria() {
+        return oredCriteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table personnel_entry
+     *
+     * @mbg.generated Fri Apr 24 11:14:15 CST 2020
+     */
+    public void or(Criteria criteria) {
+        oredCriteria.add(criteria);
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table personnel_entry
+     *
+     * @mbg.generated Fri Apr 24 11:14:15 CST 2020
+     */
+    public Criteria or() {
+        Criteria criteria = createCriteriaInternal();
+        oredCriteria.add(criteria);
+        return criteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table personnel_entry
+     *
+     * @mbg.generated Fri Apr 24 11:14:15 CST 2020
+     */
+    public Criteria createCriteria() {
+        Criteria criteria = createCriteriaInternal();
+        if (oredCriteria.size() == 0) {
+            oredCriteria.add(criteria);
+        }
+        return criteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table personnel_entry
+     *
+     * @mbg.generated Fri Apr 24 11:14:15 CST 2020
+     */
+    protected Criteria createCriteriaInternal() {
+        Criteria criteria = new Criteria();
+        return criteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table personnel_entry
+     *
+     * @mbg.generated Fri Apr 24 11:14:15 CST 2020
+     */
+    public void clear() {
+        oredCriteria.clear();
+        orderByClause = null;
+        distinct = false;
+    }
+
+    /**
+     * This class was generated by MyBatis Generator.
+     * This class corresponds to the database table personnel_entry
+     *
+     * @mbg.generated Fri Apr 24 11:14:15 CST 2020
+     */
+    protected abstract static class GeneratedCriteria {
+        protected List<Criterion> criteria;
+
+        protected GeneratedCriteria() {
+            super();
+            criteria = new ArrayList<Criterion>();
+        }
+
+        public boolean isValid() {
+            return criteria.size() > 0;
+        }
+
+        public List<Criterion> getAllCriteria() {
+            return criteria;
+        }
+
+        public List<Criterion> getCriteria() {
+            return criteria;
+        }
+
+        protected void addCriterion(String condition) {
+            if (condition == null) {
+                throw new RuntimeException("Value for condition cannot be null");
+            }
+            criteria.add(new Criterion(condition));
+        }
+
+        protected void addCriterion(String condition, Object value, String property) {
+            if (value == null) {
+                throw new RuntimeException("Value for " + property + " cannot be null");
+            }
+            criteria.add(new Criterion(condition, value));
+        }
+
+        protected void addCriterion(String condition, Object value1, Object value2, String property) {
+            if (value1 == null || value2 == null) {
+                throw new RuntimeException("Between values for " + property + " cannot be null");
+            }
+            criteria.add(new Criterion(condition, value1, value2));
+        }
+
+        public Criteria andIdIsNull() {
+            addCriterion("id is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdIsNotNull() {
+            addCriterion("id is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdEqualTo(Integer value) {
+            addCriterion("id =", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdNotEqualTo(Integer value) {
+            addCriterion("id <>", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdGreaterThan(Integer value) {
+            addCriterion("id >", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
+            addCriterion("id >=", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdLessThan(Integer value) {
+            addCriterion("id <", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdLessThanOrEqualTo(Integer value) {
+            addCriterion("id <=", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdIn(List<Integer> values) {
+            addCriterion("id in", values, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdNotIn(List<Integer> values) {
+            addCriterion("id not in", values, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdBetween(Integer value1, Integer value2) {
+            addCriterion("id between", value1, value2, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdNotBetween(Integer value1, Integer value2) {
+            addCriterion("id not between", value1, value2, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andSchoolIsNull() {
+            addCriterion("school is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andSchoolIsNotNull() {
+            addCriterion("school is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andSchoolEqualTo(String value) {
+            addCriterion("school =", value, "school");
+            return (Criteria) this;
+        }
+
+        public Criteria andSchoolNotEqualTo(String value) {
+            addCriterion("school <>", value, "school");
+            return (Criteria) this;
+        }
+
+        public Criteria andSchoolGreaterThan(String value) {
+            addCriterion("school >", value, "school");
+            return (Criteria) this;
+        }
+
+        public Criteria andSchoolGreaterThanOrEqualTo(String value) {
+            addCriterion("school >=", value, "school");
+            return (Criteria) this;
+        }
+
+        public Criteria andSchoolLessThan(String value) {
+            addCriterion("school <", value, "school");
+            return (Criteria) this;
+        }
+
+        public Criteria andSchoolLessThanOrEqualTo(String value) {
+            addCriterion("school <=", value, "school");
+            return (Criteria) this;
+        }
+
+        public Criteria andSchoolLike(String value) {
+            addCriterion("school like", value, "school");
+            return (Criteria) this;
+        }
+
+        public Criteria andSchoolNotLike(String value) {
+            addCriterion("school not like", value, "school");
+            return (Criteria) this;
+        }
+
+        public Criteria andSchoolIn(List<String> values) {
+            addCriterion("school in", values, "school");
+            return (Criteria) this;
+        }
+
+        public Criteria andSchoolNotIn(List<String> values) {
+            addCriterion("school not in", values, "school");
+            return (Criteria) this;
+        }
+
+        public Criteria andSchoolBetween(String value1, String value2) {
+            addCriterion("school between", value1, value2, "school");
+            return (Criteria) this;
+        }
+
+        public Criteria andSchoolNotBetween(String value1, String value2) {
+            addCriterion("school not between", value1, value2, "school");
+            return (Criteria) this;
+        }
+
+        public Criteria andEducationIsNull() {
+            addCriterion("education is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andEducationIsNotNull() {
+            addCriterion("education is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andEducationEqualTo(String value) {
+            addCriterion("education =", value, "education");
+            return (Criteria) this;
+        }
+
+        public Criteria andEducationNotEqualTo(String value) {
+            addCriterion("education <>", value, "education");
+            return (Criteria) this;
+        }
+
+        public Criteria andEducationGreaterThan(String value) {
+            addCriterion("education >", value, "education");
+            return (Criteria) this;
+        }
+
+        public Criteria andEducationGreaterThanOrEqualTo(String value) {
+            addCriterion("education >=", value, "education");
+            return (Criteria) this;
+        }
+
+        public Criteria andEducationLessThan(String value) {
+            addCriterion("education <", value, "education");
+            return (Criteria) this;
+        }
+
+        public Criteria andEducationLessThanOrEqualTo(String value) {
+            addCriterion("education <=", value, "education");
+            return (Criteria) this;
+        }
+
+        public Criteria andEducationLike(String value) {
+            addCriterion("education like", value, "education");
+            return (Criteria) this;
+        }
+
+        public Criteria andEducationNotLike(String value) {
+            addCriterion("education not like", value, "education");
+            return (Criteria) this;
+        }
+
+        public Criteria andEducationIn(List<String> values) {
+            addCriterion("education in", values, "education");
+            return (Criteria) this;
+        }
+
+        public Criteria andEducationNotIn(List<String> values) {
+            addCriterion("education not in", values, "education");
+            return (Criteria) this;
+        }
+
+        public Criteria andEducationBetween(String value1, String value2) {
+            addCriterion("education between", value1, value2, "education");
+            return (Criteria) this;
+        }
+
+        public Criteria andEducationNotBetween(String value1, String value2) {
+            addCriterion("education not between", value1, value2, "education");
+            return (Criteria) this;
+        }
+
+        public Criteria andMajorIsNull() {
+            addCriterion("major is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andMajorIsNotNull() {
+            addCriterion("major is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andMajorEqualTo(String value) {
+            addCriterion("major =", value, "major");
+            return (Criteria) this;
+        }
+
+        public Criteria andMajorNotEqualTo(String value) {
+            addCriterion("major <>", value, "major");
+            return (Criteria) this;
+        }
+
+        public Criteria andMajorGreaterThan(String value) {
+            addCriterion("major >", value, "major");
+            return (Criteria) this;
+        }
+
+        public Criteria andMajorGreaterThanOrEqualTo(String value) {
+            addCriterion("major >=", value, "major");
+            return (Criteria) this;
+        }
+
+        public Criteria andMajorLessThan(String value) {
+            addCriterion("major <", value, "major");
+            return (Criteria) this;
+        }
+
+        public Criteria andMajorLessThanOrEqualTo(String value) {
+            addCriterion("major <=", value, "major");
+            return (Criteria) this;
+        }
+
+        public Criteria andMajorLike(String value) {
+            addCriterion("major like", value, "major");
+            return (Criteria) this;
+        }
+
+        public Criteria andMajorNotLike(String value) {
+            addCriterion("major not like", value, "major");
+            return (Criteria) this;
+        }
+
+        public Criteria andMajorIn(List<String> values) {
+            addCriterion("major in", values, "major");
+            return (Criteria) this;
+        }
+
+        public Criteria andMajorNotIn(List<String> values) {
+            addCriterion("major not in", values, "major");
+            return (Criteria) this;
+        }
+
+        public Criteria andMajorBetween(String value1, String value2) {
+            addCriterion("major between", value1, value2, "major");
+            return (Criteria) this;
+        }
+
+        public Criteria andMajorNotBetween(String value1, String value2) {
+            addCriterion("major not between", value1, value2, "major");
+            return (Criteria) this;
+        }
+
+        public Criteria andTitleIsNull() {
+            addCriterion("title is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andTitleIsNotNull() {
+            addCriterion("title is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andTitleEqualTo(String value) {
+            addCriterion("title =", value, "title");
+            return (Criteria) this;
+        }
+
+        public Criteria andTitleNotEqualTo(String value) {
+            addCriterion("title <>", value, "title");
+            return (Criteria) this;
+        }
+
+        public Criteria andTitleGreaterThan(String value) {
+            addCriterion("title >", value, "title");
+            return (Criteria) this;
+        }
+
+        public Criteria andTitleGreaterThanOrEqualTo(String value) {
+            addCriterion("title >=", value, "title");
+            return (Criteria) this;
+        }
+
+        public Criteria andTitleLessThan(String value) {
+            addCriterion("title <", value, "title");
+            return (Criteria) this;
+        }
+
+        public Criteria andTitleLessThanOrEqualTo(String value) {
+            addCriterion("title <=", value, "title");
+            return (Criteria) this;
+        }
+
+        public Criteria andTitleLike(String value) {
+            addCriterion("title like", value, "title");
+            return (Criteria) this;
+        }
+
+        public Criteria andTitleNotLike(String value) {
+            addCriterion("title not like", value, "title");
+            return (Criteria) this;
+        }
+
+        public Criteria andTitleIn(List<String> values) {
+            addCriterion("title in", values, "title");
+            return (Criteria) this;
+        }
+
+        public Criteria andTitleNotIn(List<String> values) {
+            addCriterion("title not in", values, "title");
+            return (Criteria) this;
+        }
+
+        public Criteria andTitleBetween(String value1, String value2) {
+            addCriterion("title between", value1, value2, "title");
+            return (Criteria) this;
+        }
+
+        public Criteria andTitleNotBetween(String value1, String value2) {
+            addCriterion("title not between", value1, value2, "title");
+            return (Criteria) this;
+        }
+
+        public Criteria andEntryRemarksIsNull() {
+            addCriterion("entry_remarks is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andEntryRemarksIsNotNull() {
+            addCriterion("entry_remarks is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andEntryRemarksEqualTo(String value) {
+            addCriterion("entry_remarks =", value, "entryRemarks");
+            return (Criteria) this;
+        }
+
+        public Criteria andEntryRemarksNotEqualTo(String value) {
+            addCriterion("entry_remarks <>", value, "entryRemarks");
+            return (Criteria) this;
+        }
+
+        public Criteria andEntryRemarksGreaterThan(String value) {
+            addCriterion("entry_remarks >", value, "entryRemarks");
+            return (Criteria) this;
+        }
+
+        public Criteria andEntryRemarksGreaterThanOrEqualTo(String value) {
+            addCriterion("entry_remarks >=", value, "entryRemarks");
+            return (Criteria) this;
+        }
+
+        public Criteria andEntryRemarksLessThan(String value) {
+            addCriterion("entry_remarks <", value, "entryRemarks");
+            return (Criteria) this;
+        }
+
+        public Criteria andEntryRemarksLessThanOrEqualTo(String value) {
+            addCriterion("entry_remarks <=", value, "entryRemarks");
+            return (Criteria) this;
+        }
+
+        public Criteria andEntryRemarksLike(String value) {
+            addCriterion("entry_remarks like", value, "entryRemarks");
+            return (Criteria) this;
+        }
+
+        public Criteria andEntryRemarksNotLike(String value) {
+            addCriterion("entry_remarks not like", value, "entryRemarks");
+            return (Criteria) this;
+        }
+
+        public Criteria andEntryRemarksIn(List<String> values) {
+            addCriterion("entry_remarks in", values, "entryRemarks");
+            return (Criteria) this;
+        }
+
+        public Criteria andEntryRemarksNotIn(List<String> values) {
+            addCriterion("entry_remarks not in", values, "entryRemarks");
+            return (Criteria) this;
+        }
+
+        public Criteria andEntryRemarksBetween(String value1, String value2) {
+            addCriterion("entry_remarks between", value1, value2, "entryRemarks");
+            return (Criteria) this;
+        }
+
+        public Criteria andEntryRemarksNotBetween(String value1, String value2) {
+            addCriterion("entry_remarks not between", value1, value2, "entryRemarks");
+            return (Criteria) this;
+        }
+
+        public Criteria andAnnexUrlIsNull() {
+            addCriterion("annex_url is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andAnnexUrlIsNotNull() {
+            addCriterion("annex_url is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andAnnexUrlEqualTo(String value) {
+            addCriterion("annex_url =", value, "annexUrl");
+            return (Criteria) this;
+        }
+
+        public Criteria andAnnexUrlNotEqualTo(String value) {
+            addCriterion("annex_url <>", value, "annexUrl");
+            return (Criteria) this;
+        }
+
+        public Criteria andAnnexUrlGreaterThan(String value) {
+            addCriterion("annex_url >", value, "annexUrl");
+            return (Criteria) this;
+        }
+
+        public Criteria andAnnexUrlGreaterThanOrEqualTo(String value) {
+            addCriterion("annex_url >=", value, "annexUrl");
+            return (Criteria) this;
+        }
+
+        public Criteria andAnnexUrlLessThan(String value) {
+            addCriterion("annex_url <", value, "annexUrl");
+            return (Criteria) this;
+        }
+
+        public Criteria andAnnexUrlLessThanOrEqualTo(String value) {
+            addCriterion("annex_url <=", value, "annexUrl");
+            return (Criteria) this;
+        }
+
+        public Criteria andAnnexUrlLike(String value) {
+            addCriterion("annex_url like", value, "annexUrl");
+            return (Criteria) this;
+        }
+
+        public Criteria andAnnexUrlNotLike(String value) {
+            addCriterion("annex_url not like", value, "annexUrl");
+            return (Criteria) this;
+        }
+
+        public Criteria andAnnexUrlIn(List<String> values) {
+            addCriterion("annex_url in", values, "annexUrl");
+            return (Criteria) this;
+        }
+
+        public Criteria andAnnexUrlNotIn(List<String> values) {
+            addCriterion("annex_url not in", values, "annexUrl");
+            return (Criteria) this;
+        }
+
+        public Criteria andAnnexUrlBetween(String value1, String value2) {
+            addCriterion("annex_url between", value1, value2, "annexUrl");
+            return (Criteria) this;
+        }
+
+        public Criteria andAnnexUrlNotBetween(String value1, String value2) {
+            addCriterion("annex_url not between", value1, value2, "annexUrl");
+            return (Criteria) this;
+        }
+
+        public Criteria andAnnexNameIsNull() {
+            addCriterion("annex_name is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andAnnexNameIsNotNull() {
+            addCriterion("annex_name is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andAnnexNameEqualTo(String value) {
+            addCriterion("annex_name =", value, "annexName");
+            return (Criteria) this;
+        }
+
+        public Criteria andAnnexNameNotEqualTo(String value) {
+            addCriterion("annex_name <>", value, "annexName");
+            return (Criteria) this;
+        }
+
+        public Criteria andAnnexNameGreaterThan(String value) {
+            addCriterion("annex_name >", value, "annexName");
+            return (Criteria) this;
+        }
+
+        public Criteria andAnnexNameGreaterThanOrEqualTo(String value) {
+            addCriterion("annex_name >=", value, "annexName");
+            return (Criteria) this;
+        }
+
+        public Criteria andAnnexNameLessThan(String value) {
+            addCriterion("annex_name <", value, "annexName");
+            return (Criteria) this;
+        }
+
+        public Criteria andAnnexNameLessThanOrEqualTo(String value) {
+            addCriterion("annex_name <=", value, "annexName");
+            return (Criteria) this;
+        }
+
+        public Criteria andAnnexNameLike(String value) {
+            addCriterion("annex_name like", value, "annexName");
+            return (Criteria) this;
+        }
+
+        public Criteria andAnnexNameNotLike(String value) {
+            addCriterion("annex_name not like", value, "annexName");
+            return (Criteria) this;
+        }
+
+        public Criteria andAnnexNameIn(List<String> values) {
+            addCriterion("annex_name in", values, "annexName");
+            return (Criteria) this;
+        }
+
+        public Criteria andAnnexNameNotIn(List<String> values) {
+            addCriterion("annex_name not in", values, "annexName");
+            return (Criteria) this;
+        }
+
+        public Criteria andAnnexNameBetween(String value1, String value2) {
+            addCriterion("annex_name between", value1, value2, "annexName");
+            return (Criteria) this;
+        }
+
+        public Criteria andAnnexNameNotBetween(String value1, String value2) {
+            addCriterion("annex_name not between", value1, value2, "annexName");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeIsNull() {
+            addCriterion("create_time is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeIsNotNull() {
+            addCriterion("create_time is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeEqualTo(Date value) {
+            addCriterion("create_time =", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeNotEqualTo(Date value) {
+            addCriterion("create_time <>", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeGreaterThan(Date value) {
+            addCriterion("create_time >", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
+            addCriterion("create_time >=", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeLessThan(Date value) {
+            addCriterion("create_time <", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
+            addCriterion("create_time <=", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeIn(List<Date> values) {
+            addCriterion("create_time in", values, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeNotIn(List<Date> values) {
+            addCriterion("create_time not in", values, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeBetween(Date value1, Date value2) {
+            addCriterion("create_time between", value1, value2, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
+            addCriterion("create_time not between", value1, value2, "createTime");
+            return (Criteria) this;
+        }
+    }
+
+    /**
+     * This class was generated by MyBatis Generator.
+     * This class corresponds to the database table personnel_entry
+     *
+     * @mbg.generated do_not_delete_during_merge Fri Apr 24 11:14:15 CST 2020
+     */
+    public static class Criteria extends GeneratedCriteria {
+
+        protected Criteria() {
+            super();
+        }
+    }
+
+    /**
+     * This class was generated by MyBatis Generator.
+     * This class corresponds to the database table personnel_entry
+     *
+     * @mbg.generated Fri Apr 24 11:14:15 CST 2020
+     */
+    public static class Criterion {
+        private String condition;
+
+        private Object value;
+
+        private Object secondValue;
+
+        private boolean noValue;
+
+        private boolean singleValue;
+
+        private boolean betweenValue;
+
+        private boolean listValue;
+
+        private String typeHandler;
+
+        public String getCondition() {
+            return condition;
+        }
+
+        public Object getValue() {
+            return value;
+        }
+
+        public Object getSecondValue() {
+            return secondValue;
+        }
+
+        public boolean isNoValue() {
+            return noValue;
+        }
+
+        public boolean isSingleValue() {
+            return singleValue;
+        }
+
+        public boolean isBetweenValue() {
+            return betweenValue;
+        }
+
+        public boolean isListValue() {
+            return listValue;
+        }
+
+        public String getTypeHandler() {
+            return typeHandler;
+        }
+
+        protected Criterion(String condition) {
+            super();
+            this.condition = condition;
+            this.typeHandler = null;
+            this.noValue = true;
+        }
+
+        protected Criterion(String condition, Object value, String typeHandler) {
+            super();
+            this.condition = condition;
+            this.value = value;
+            this.typeHandler = typeHandler;
+            if (value instanceof List<?>) {
+                this.listValue = true;
+            } else {
+                this.singleValue = true;
+            }
+        }
+
+        protected Criterion(String condition, Object value) {
+            this(condition, value, null);
+        }
+
+        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
+            super();
+            this.condition = condition;
+            this.value = value;
+            this.secondValue = secondValue;
+            this.typeHandler = typeHandler;
+            this.betweenValue = true;
+        }
+
+        protected Criterion(String condition, Object value, Object secondValue) {
+            this(condition, value, secondValue, null);
+        }
+    }
+}

+ 302 - 0
src/main/java/com/goafanti/common/model/PersonnelPromotion.java

@@ -0,0 +1,302 @@
+package com.goafanti.common.model;
+
+import java.util.Date;
+
+public class PersonnelPromotion {
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column personnel_promotion.id
+     *
+     * @mbg.generated Fri Apr 24 11:38:17 CST 2020
+     */
+    private Integer id;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column personnel_promotion.pd_id
+     *
+     * @mbg.generated Fri Apr 24 11:38:17 CST 2020
+     */
+    private Integer pdId;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column personnel_promotion.old_jobs
+     *
+     * @mbg.generated Fri Apr 24 11:38:17 CST 2020
+     */
+    private String oldJobs;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column personnel_promotion.new_jobs
+     *
+     * @mbg.generated Fri Apr 24 11:38:17 CST 2020
+     */
+    private String newJobs;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column personnel_promotion.promotion_time
+     *
+     * @mbg.generated Fri Apr 24 11:38:17 CST 2020
+     */
+    private Date promotionTime;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column personnel_promotion.promotion_remarks
+     *
+     * @mbg.generated Fri Apr 24 11:38:17 CST 2020
+     */
+    private String promotionRemarks;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column personnel_promotion.annex_url
+     *
+     * @mbg.generated Fri Apr 24 11:38:17 CST 2020
+     */
+    private String annexUrl;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column personnel_promotion.annex_name
+     *
+     * @mbg.generated Fri Apr 24 11:38:17 CST 2020
+     */
+    private String annexName;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column personnel_promotion.create_time
+     *
+     * @mbg.generated Fri Apr 24 11:38:17 CST 2020
+     */
+    private Date createTime;
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column personnel_promotion.id
+     *
+     * @return the value of personnel_promotion.id
+     *
+     * @mbg.generated Fri Apr 24 11:38:17 CST 2020
+     */
+    public Integer getId() {
+        return id;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column personnel_promotion.id
+     *
+     * @param id the value for personnel_promotion.id
+     *
+     * @mbg.generated Fri Apr 24 11:38:17 CST 2020
+     */
+    public void setId(Integer id) {
+        this.id = id;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column personnel_promotion.pd_id
+     *
+     * @return the value of personnel_promotion.pd_id
+     *
+     * @mbg.generated Fri Apr 24 11:38:17 CST 2020
+     */
+    public Integer getPdId() {
+        return pdId;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column personnel_promotion.pd_id
+     *
+     * @param pdId the value for personnel_promotion.pd_id
+     *
+     * @mbg.generated Fri Apr 24 11:38:17 CST 2020
+     */
+    public void setPdId(Integer pdId) {
+        this.pdId = pdId;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column personnel_promotion.old_jobs
+     *
+     * @return the value of personnel_promotion.old_jobs
+     *
+     * @mbg.generated Fri Apr 24 11:38:17 CST 2020
+     */
+    public String getOldJobs() {
+        return oldJobs;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column personnel_promotion.old_jobs
+     *
+     * @param oldJobs the value for personnel_promotion.old_jobs
+     *
+     * @mbg.generated Fri Apr 24 11:38:17 CST 2020
+     */
+    public void setOldJobs(String oldJobs) {
+        this.oldJobs = oldJobs;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column personnel_promotion.new_jobs
+     *
+     * @return the value of personnel_promotion.new_jobs
+     *
+     * @mbg.generated Fri Apr 24 11:38:17 CST 2020
+     */
+    public String getNewJobs() {
+        return newJobs;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column personnel_promotion.new_jobs
+     *
+     * @param newJobs the value for personnel_promotion.new_jobs
+     *
+     * @mbg.generated Fri Apr 24 11:38:17 CST 2020
+     */
+    public void setNewJobs(String newJobs) {
+        this.newJobs = newJobs;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column personnel_promotion.promotion_time
+     *
+     * @return the value of personnel_promotion.promotion_time
+     *
+     * @mbg.generated Fri Apr 24 11:38:17 CST 2020
+     */
+    public Date getPromotionTime() {
+        return promotionTime;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column personnel_promotion.promotion_time
+     *
+     * @param promotionTime the value for personnel_promotion.promotion_time
+     *
+     * @mbg.generated Fri Apr 24 11:38:17 CST 2020
+     */
+    public void setPromotionTime(Date promotionTime) {
+        this.promotionTime = promotionTime;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column personnel_promotion.promotion_remarks
+     *
+     * @return the value of personnel_promotion.promotion_remarks
+     *
+     * @mbg.generated Fri Apr 24 11:38:17 CST 2020
+     */
+    public String getPromotionRemarks() {
+        return promotionRemarks;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column personnel_promotion.promotion_remarks
+     *
+     * @param promotionRemarks the value for personnel_promotion.promotion_remarks
+     *
+     * @mbg.generated Fri Apr 24 11:38:17 CST 2020
+     */
+    public void setPromotionRemarks(String promotionRemarks) {
+        this.promotionRemarks = promotionRemarks;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column personnel_promotion.annex_url
+     *
+     * @return the value of personnel_promotion.annex_url
+     *
+     * @mbg.generated Fri Apr 24 11:38:17 CST 2020
+     */
+    public String getAnnexUrl() {
+        return annexUrl;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column personnel_promotion.annex_url
+     *
+     * @param annexUrl the value for personnel_promotion.annex_url
+     *
+     * @mbg.generated Fri Apr 24 11:38:17 CST 2020
+     */
+    public void setAnnexUrl(String annexUrl) {
+        this.annexUrl = annexUrl;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column personnel_promotion.annex_name
+     *
+     * @return the value of personnel_promotion.annex_name
+     *
+     * @mbg.generated Fri Apr 24 11:38:17 CST 2020
+     */
+    public String getAnnexName() {
+        return annexName;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column personnel_promotion.annex_name
+     *
+     * @param annexName the value for personnel_promotion.annex_name
+     *
+     * @mbg.generated Fri Apr 24 11:38:17 CST 2020
+     */
+    public void setAnnexName(String annexName) {
+        this.annexName = annexName;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column personnel_promotion.create_time
+     *
+     * @return the value of personnel_promotion.create_time
+     *
+     * @mbg.generated Fri Apr 24 11:38:17 CST 2020
+     */
+    public Date getCreateTime() {
+        return createTime;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column personnel_promotion.create_time
+     *
+     * @param createTime the value for personnel_promotion.create_time
+     *
+     * @mbg.generated Fri Apr 24 11:38:17 CST 2020
+     */
+    public void setCreateTime(Date createTime) {
+        this.createTime = createTime;
+    }
+}

+ 893 - 0
src/main/java/com/goafanti/common/model/PersonnelPromotionExample.java

@@ -0,0 +1,893 @@
+package com.goafanti.common.model;
+
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+
+public class PersonnelPromotionExample {
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table personnel_promotion
+     *
+     * @mbg.generated Fri Apr 24 11:38:17 CST 2020
+     */
+    protected String orderByClause;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table personnel_promotion
+     *
+     * @mbg.generated Fri Apr 24 11:38:17 CST 2020
+     */
+    protected boolean distinct;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table personnel_promotion
+     *
+     * @mbg.generated Fri Apr 24 11:38:17 CST 2020
+     */
+    protected List<Criteria> oredCriteria;
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table personnel_promotion
+     *
+     * @mbg.generated Fri Apr 24 11:38:17 CST 2020
+     */
+    public PersonnelPromotionExample() {
+        oredCriteria = new ArrayList<Criteria>();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table personnel_promotion
+     *
+     * @mbg.generated Fri Apr 24 11:38:17 CST 2020
+     */
+    public void setOrderByClause(String orderByClause) {
+        this.orderByClause = orderByClause;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table personnel_promotion
+     *
+     * @mbg.generated Fri Apr 24 11:38:17 CST 2020
+     */
+    public String getOrderByClause() {
+        return orderByClause;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table personnel_promotion
+     *
+     * @mbg.generated Fri Apr 24 11:38:17 CST 2020
+     */
+    public void setDistinct(boolean distinct) {
+        this.distinct = distinct;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table personnel_promotion
+     *
+     * @mbg.generated Fri Apr 24 11:38:17 CST 2020
+     */
+    public boolean isDistinct() {
+        return distinct;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table personnel_promotion
+     *
+     * @mbg.generated Fri Apr 24 11:38:17 CST 2020
+     */
+    public List<Criteria> getOredCriteria() {
+        return oredCriteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table personnel_promotion
+     *
+     * @mbg.generated Fri Apr 24 11:38:17 CST 2020
+     */
+    public void or(Criteria criteria) {
+        oredCriteria.add(criteria);
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table personnel_promotion
+     *
+     * @mbg.generated Fri Apr 24 11:38:17 CST 2020
+     */
+    public Criteria or() {
+        Criteria criteria = createCriteriaInternal();
+        oredCriteria.add(criteria);
+        return criteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table personnel_promotion
+     *
+     * @mbg.generated Fri Apr 24 11:38:17 CST 2020
+     */
+    public Criteria createCriteria() {
+        Criteria criteria = createCriteriaInternal();
+        if (oredCriteria.size() == 0) {
+            oredCriteria.add(criteria);
+        }
+        return criteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table personnel_promotion
+     *
+     * @mbg.generated Fri Apr 24 11:38:17 CST 2020
+     */
+    protected Criteria createCriteriaInternal() {
+        Criteria criteria = new Criteria();
+        return criteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table personnel_promotion
+     *
+     * @mbg.generated Fri Apr 24 11:38:17 CST 2020
+     */
+    public void clear() {
+        oredCriteria.clear();
+        orderByClause = null;
+        distinct = false;
+    }
+
+    /**
+     * This class was generated by MyBatis Generator.
+     * This class corresponds to the database table personnel_promotion
+     *
+     * @mbg.generated Fri Apr 24 11:38:17 CST 2020
+     */
+    protected abstract static class GeneratedCriteria {
+        protected List<Criterion> criteria;
+
+        protected GeneratedCriteria() {
+            super();
+            criteria = new ArrayList<Criterion>();
+        }
+
+        public boolean isValid() {
+            return criteria.size() > 0;
+        }
+
+        public List<Criterion> getAllCriteria() {
+            return criteria;
+        }
+
+        public List<Criterion> getCriteria() {
+            return criteria;
+        }
+
+        protected void addCriterion(String condition) {
+            if (condition == null) {
+                throw new RuntimeException("Value for condition cannot be null");
+            }
+            criteria.add(new Criterion(condition));
+        }
+
+        protected void addCriterion(String condition, Object value, String property) {
+            if (value == null) {
+                throw new RuntimeException("Value for " + property + " cannot be null");
+            }
+            criteria.add(new Criterion(condition, value));
+        }
+
+        protected void addCriterion(String condition, Object value1, Object value2, String property) {
+            if (value1 == null || value2 == null) {
+                throw new RuntimeException("Between values for " + property + " cannot be null");
+            }
+            criteria.add(new Criterion(condition, value1, value2));
+        }
+
+        public Criteria andIdIsNull() {
+            addCriterion("id is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdIsNotNull() {
+            addCriterion("id is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdEqualTo(Integer value) {
+            addCriterion("id =", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdNotEqualTo(Integer value) {
+            addCriterion("id <>", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdGreaterThan(Integer value) {
+            addCriterion("id >", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
+            addCriterion("id >=", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdLessThan(Integer value) {
+            addCriterion("id <", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdLessThanOrEqualTo(Integer value) {
+            addCriterion("id <=", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdIn(List<Integer> values) {
+            addCriterion("id in", values, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdNotIn(List<Integer> values) {
+            addCriterion("id not in", values, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdBetween(Integer value1, Integer value2) {
+            addCriterion("id between", value1, value2, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdNotBetween(Integer value1, Integer value2) {
+            addCriterion("id not between", value1, value2, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andPdIdIsNull() {
+            addCriterion("pd_id is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPdIdIsNotNull() {
+            addCriterion("pd_id is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPdIdEqualTo(Integer value) {
+            addCriterion("pd_id =", value, "pdId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPdIdNotEqualTo(Integer value) {
+            addCriterion("pd_id <>", value, "pdId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPdIdGreaterThan(Integer value) {
+            addCriterion("pd_id >", value, "pdId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPdIdGreaterThanOrEqualTo(Integer value) {
+            addCriterion("pd_id >=", value, "pdId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPdIdLessThan(Integer value) {
+            addCriterion("pd_id <", value, "pdId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPdIdLessThanOrEqualTo(Integer value) {
+            addCriterion("pd_id <=", value, "pdId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPdIdIn(List<Integer> values) {
+            addCriterion("pd_id in", values, "pdId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPdIdNotIn(List<Integer> values) {
+            addCriterion("pd_id not in", values, "pdId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPdIdBetween(Integer value1, Integer value2) {
+            addCriterion("pd_id between", value1, value2, "pdId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPdIdNotBetween(Integer value1, Integer value2) {
+            addCriterion("pd_id not between", value1, value2, "pdId");
+            return (Criteria) this;
+        }
+
+        public Criteria andOldJobsIsNull() {
+            addCriterion("old_jobs is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andOldJobsIsNotNull() {
+            addCriterion("old_jobs is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andOldJobsEqualTo(String value) {
+            addCriterion("old_jobs =", value, "oldJobs");
+            return (Criteria) this;
+        }
+
+        public Criteria andOldJobsNotEqualTo(String value) {
+            addCriterion("old_jobs <>", value, "oldJobs");
+            return (Criteria) this;
+        }
+
+        public Criteria andOldJobsGreaterThan(String value) {
+            addCriterion("old_jobs >", value, "oldJobs");
+            return (Criteria) this;
+        }
+
+        public Criteria andOldJobsGreaterThanOrEqualTo(String value) {
+            addCriterion("old_jobs >=", value, "oldJobs");
+            return (Criteria) this;
+        }
+
+        public Criteria andOldJobsLessThan(String value) {
+            addCriterion("old_jobs <", value, "oldJobs");
+            return (Criteria) this;
+        }
+
+        public Criteria andOldJobsLessThanOrEqualTo(String value) {
+            addCriterion("old_jobs <=", value, "oldJobs");
+            return (Criteria) this;
+        }
+
+        public Criteria andOldJobsLike(String value) {
+            addCriterion("old_jobs like", value, "oldJobs");
+            return (Criteria) this;
+        }
+
+        public Criteria andOldJobsNotLike(String value) {
+            addCriterion("old_jobs not like", value, "oldJobs");
+            return (Criteria) this;
+        }
+
+        public Criteria andOldJobsIn(List<String> values) {
+            addCriterion("old_jobs in", values, "oldJobs");
+            return (Criteria) this;
+        }
+
+        public Criteria andOldJobsNotIn(List<String> values) {
+            addCriterion("old_jobs not in", values, "oldJobs");
+            return (Criteria) this;
+        }
+
+        public Criteria andOldJobsBetween(String value1, String value2) {
+            addCriterion("old_jobs between", value1, value2, "oldJobs");
+            return (Criteria) this;
+        }
+
+        public Criteria andOldJobsNotBetween(String value1, String value2) {
+            addCriterion("old_jobs not between", value1, value2, "oldJobs");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewJobsIsNull() {
+            addCriterion("new_jobs is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewJobsIsNotNull() {
+            addCriterion("new_jobs is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewJobsEqualTo(String value) {
+            addCriterion("new_jobs =", value, "newJobs");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewJobsNotEqualTo(String value) {
+            addCriterion("new_jobs <>", value, "newJobs");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewJobsGreaterThan(String value) {
+            addCriterion("new_jobs >", value, "newJobs");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewJobsGreaterThanOrEqualTo(String value) {
+            addCriterion("new_jobs >=", value, "newJobs");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewJobsLessThan(String value) {
+            addCriterion("new_jobs <", value, "newJobs");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewJobsLessThanOrEqualTo(String value) {
+            addCriterion("new_jobs <=", value, "newJobs");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewJobsLike(String value) {
+            addCriterion("new_jobs like", value, "newJobs");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewJobsNotLike(String value) {
+            addCriterion("new_jobs not like", value, "newJobs");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewJobsIn(List<String> values) {
+            addCriterion("new_jobs in", values, "newJobs");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewJobsNotIn(List<String> values) {
+            addCriterion("new_jobs not in", values, "newJobs");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewJobsBetween(String value1, String value2) {
+            addCriterion("new_jobs between", value1, value2, "newJobs");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewJobsNotBetween(String value1, String value2) {
+            addCriterion("new_jobs not between", value1, value2, "newJobs");
+            return (Criteria) this;
+        }
+
+        public Criteria andPromotionTimeIsNull() {
+            addCriterion("promotion_time is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPromotionTimeIsNotNull() {
+            addCriterion("promotion_time is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPromotionTimeEqualTo(Date value) {
+            addCriterion("promotion_time =", value, "promotionTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andPromotionTimeNotEqualTo(Date value) {
+            addCriterion("promotion_time <>", value, "promotionTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andPromotionTimeGreaterThan(Date value) {
+            addCriterion("promotion_time >", value, "promotionTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andPromotionTimeGreaterThanOrEqualTo(Date value) {
+            addCriterion("promotion_time >=", value, "promotionTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andPromotionTimeLessThan(Date value) {
+            addCriterion("promotion_time <", value, "promotionTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andPromotionTimeLessThanOrEqualTo(Date value) {
+            addCriterion("promotion_time <=", value, "promotionTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andPromotionTimeIn(List<Date> values) {
+            addCriterion("promotion_time in", values, "promotionTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andPromotionTimeNotIn(List<Date> values) {
+            addCriterion("promotion_time not in", values, "promotionTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andPromotionTimeBetween(Date value1, Date value2) {
+            addCriterion("promotion_time between", value1, value2, "promotionTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andPromotionTimeNotBetween(Date value1, Date value2) {
+            addCriterion("promotion_time not between", value1, value2, "promotionTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andPromotionRemarksIsNull() {
+            addCriterion("promotion_remarks is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPromotionRemarksIsNotNull() {
+            addCriterion("promotion_remarks is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPromotionRemarksEqualTo(String value) {
+            addCriterion("promotion_remarks =", value, "promotionRemarks");
+            return (Criteria) this;
+        }
+
+        public Criteria andPromotionRemarksNotEqualTo(String value) {
+            addCriterion("promotion_remarks <>", value, "promotionRemarks");
+            return (Criteria) this;
+        }
+
+        public Criteria andPromotionRemarksGreaterThan(String value) {
+            addCriterion("promotion_remarks >", value, "promotionRemarks");
+            return (Criteria) this;
+        }
+
+        public Criteria andPromotionRemarksGreaterThanOrEqualTo(String value) {
+            addCriterion("promotion_remarks >=", value, "promotionRemarks");
+            return (Criteria) this;
+        }
+
+        public Criteria andPromotionRemarksLessThan(String value) {
+            addCriterion("promotion_remarks <", value, "promotionRemarks");
+            return (Criteria) this;
+        }
+
+        public Criteria andPromotionRemarksLessThanOrEqualTo(String value) {
+            addCriterion("promotion_remarks <=", value, "promotionRemarks");
+            return (Criteria) this;
+        }
+
+        public Criteria andPromotionRemarksLike(String value) {
+            addCriterion("promotion_remarks like", value, "promotionRemarks");
+            return (Criteria) this;
+        }
+
+        public Criteria andPromotionRemarksNotLike(String value) {
+            addCriterion("promotion_remarks not like", value, "promotionRemarks");
+            return (Criteria) this;
+        }
+
+        public Criteria andPromotionRemarksIn(List<String> values) {
+            addCriterion("promotion_remarks in", values, "promotionRemarks");
+            return (Criteria) this;
+        }
+
+        public Criteria andPromotionRemarksNotIn(List<String> values) {
+            addCriterion("promotion_remarks not in", values, "promotionRemarks");
+            return (Criteria) this;
+        }
+
+        public Criteria andPromotionRemarksBetween(String value1, String value2) {
+            addCriterion("promotion_remarks between", value1, value2, "promotionRemarks");
+            return (Criteria) this;
+        }
+
+        public Criteria andPromotionRemarksNotBetween(String value1, String value2) {
+            addCriterion("promotion_remarks not between", value1, value2, "promotionRemarks");
+            return (Criteria) this;
+        }
+
+        public Criteria andAnnexUrlIsNull() {
+            addCriterion("annex_url is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andAnnexUrlIsNotNull() {
+            addCriterion("annex_url is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andAnnexUrlEqualTo(String value) {
+            addCriterion("annex_url =", value, "annexUrl");
+            return (Criteria) this;
+        }
+
+        public Criteria andAnnexUrlNotEqualTo(String value) {
+            addCriterion("annex_url <>", value, "annexUrl");
+            return (Criteria) this;
+        }
+
+        public Criteria andAnnexUrlGreaterThan(String value) {
+            addCriterion("annex_url >", value, "annexUrl");
+            return (Criteria) this;
+        }
+
+        public Criteria andAnnexUrlGreaterThanOrEqualTo(String value) {
+            addCriterion("annex_url >=", value, "annexUrl");
+            return (Criteria) this;
+        }
+
+        public Criteria andAnnexUrlLessThan(String value) {
+            addCriterion("annex_url <", value, "annexUrl");
+            return (Criteria) this;
+        }
+
+        public Criteria andAnnexUrlLessThanOrEqualTo(String value) {
+            addCriterion("annex_url <=", value, "annexUrl");
+            return (Criteria) this;
+        }
+
+        public Criteria andAnnexUrlLike(String value) {
+            addCriterion("annex_url like", value, "annexUrl");
+            return (Criteria) this;
+        }
+
+        public Criteria andAnnexUrlNotLike(String value) {
+            addCriterion("annex_url not like", value, "annexUrl");
+            return (Criteria) this;
+        }
+
+        public Criteria andAnnexUrlIn(List<String> values) {
+            addCriterion("annex_url in", values, "annexUrl");
+            return (Criteria) this;
+        }
+
+        public Criteria andAnnexUrlNotIn(List<String> values) {
+            addCriterion("annex_url not in", values, "annexUrl");
+            return (Criteria) this;
+        }
+
+        public Criteria andAnnexUrlBetween(String value1, String value2) {
+            addCriterion("annex_url between", value1, value2, "annexUrl");
+            return (Criteria) this;
+        }
+
+        public Criteria andAnnexUrlNotBetween(String value1, String value2) {
+            addCriterion("annex_url not between", value1, value2, "annexUrl");
+            return (Criteria) this;
+        }
+
+        public Criteria andAnnexNameIsNull() {
+            addCriterion("annex_name is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andAnnexNameIsNotNull() {
+            addCriterion("annex_name is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andAnnexNameEqualTo(String value) {
+            addCriterion("annex_name =", value, "annexName");
+            return (Criteria) this;
+        }
+
+        public Criteria andAnnexNameNotEqualTo(String value) {
+            addCriterion("annex_name <>", value, "annexName");
+            return (Criteria) this;
+        }
+
+        public Criteria andAnnexNameGreaterThan(String value) {
+            addCriterion("annex_name >", value, "annexName");
+            return (Criteria) this;
+        }
+
+        public Criteria andAnnexNameGreaterThanOrEqualTo(String value) {
+            addCriterion("annex_name >=", value, "annexName");
+            return (Criteria) this;
+        }
+
+        public Criteria andAnnexNameLessThan(String value) {
+            addCriterion("annex_name <", value, "annexName");
+            return (Criteria) this;
+        }
+
+        public Criteria andAnnexNameLessThanOrEqualTo(String value) {
+            addCriterion("annex_name <=", value, "annexName");
+            return (Criteria) this;
+        }
+
+        public Criteria andAnnexNameLike(String value) {
+            addCriterion("annex_name like", value, "annexName");
+            return (Criteria) this;
+        }
+
+        public Criteria andAnnexNameNotLike(String value) {
+            addCriterion("annex_name not like", value, "annexName");
+            return (Criteria) this;
+        }
+
+        public Criteria andAnnexNameIn(List<String> values) {
+            addCriterion("annex_name in", values, "annexName");
+            return (Criteria) this;
+        }
+
+        public Criteria andAnnexNameNotIn(List<String> values) {
+            addCriterion("annex_name not in", values, "annexName");
+            return (Criteria) this;
+        }
+
+        public Criteria andAnnexNameBetween(String value1, String value2) {
+            addCriterion("annex_name between", value1, value2, "annexName");
+            return (Criteria) this;
+        }
+
+        public Criteria andAnnexNameNotBetween(String value1, String value2) {
+            addCriterion("annex_name not between", value1, value2, "annexName");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeIsNull() {
+            addCriterion("create_time is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeIsNotNull() {
+            addCriterion("create_time is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeEqualTo(Date value) {
+            addCriterion("create_time =", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeNotEqualTo(Date value) {
+            addCriterion("create_time <>", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeGreaterThan(Date value) {
+            addCriterion("create_time >", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
+            addCriterion("create_time >=", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeLessThan(Date value) {
+            addCriterion("create_time <", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
+            addCriterion("create_time <=", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeIn(List<Date> values) {
+            addCriterion("create_time in", values, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeNotIn(List<Date> values) {
+            addCriterion("create_time not in", values, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeBetween(Date value1, Date value2) {
+            addCriterion("create_time between", value1, value2, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
+            addCriterion("create_time not between", value1, value2, "createTime");
+            return (Criteria) this;
+        }
+    }
+
+    /**
+     * This class was generated by MyBatis Generator.
+     * This class corresponds to the database table personnel_promotion
+     *
+     * @mbg.generated do_not_delete_during_merge Fri Apr 24 11:38:17 CST 2020
+     */
+    public static class Criteria extends GeneratedCriteria {
+
+        protected Criteria() {
+            super();
+        }
+    }
+
+    /**
+     * This class was generated by MyBatis Generator.
+     * This class corresponds to the database table personnel_promotion
+     *
+     * @mbg.generated Fri Apr 24 11:38:17 CST 2020
+     */
+    public static class Criterion {
+        private String condition;
+
+        private Object value;
+
+        private Object secondValue;
+
+        private boolean noValue;
+
+        private boolean singleValue;
+
+        private boolean betweenValue;
+
+        private boolean listValue;
+
+        private String typeHandler;
+
+        public String getCondition() {
+            return condition;
+        }
+
+        public Object getValue() {
+            return value;
+        }
+
+        public Object getSecondValue() {
+            return secondValue;
+        }
+
+        public boolean isNoValue() {
+            return noValue;
+        }
+
+        public boolean isSingleValue() {
+            return singleValue;
+        }
+
+        public boolean isBetweenValue() {
+            return betweenValue;
+        }
+
+        public boolean isListValue() {
+            return listValue;
+        }
+
+        public String getTypeHandler() {
+            return typeHandler;
+        }
+
+        protected Criterion(String condition) {
+            super();
+            this.condition = condition;
+            this.typeHandler = null;
+            this.noValue = true;
+        }
+
+        protected Criterion(String condition, Object value, String typeHandler) {
+            super();
+            this.condition = condition;
+            this.value = value;
+            this.typeHandler = typeHandler;
+            if (value instanceof List<?>) {
+                this.listValue = true;
+            } else {
+                this.singleValue = true;
+            }
+        }
+
+        protected Criterion(String condition, Object value) {
+            this(condition, value, null);
+        }
+
+        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
+            super();
+            this.condition = condition;
+            this.value = value;
+            this.secondValue = secondValue;
+            this.typeHandler = typeHandler;
+            this.betweenValue = true;
+        }
+
+        protected Criterion(String condition, Object value, Object secondValue) {
+            this(condition, value, secondValue, null);
+        }
+    }
+}

+ 34 - 0
src/main/java/com/goafanti/personnel/bo/InutpPersonnelContactBo.java

@@ -0,0 +1,34 @@
+package com.goafanti.personnel.bo;
+
+public class InutpPersonnelContactBo {
+	private Integer id;
+	private String mobile;
+	private String fixedTel;
+	private String contactList;
+	public String getMobile() {
+		return mobile;
+	}
+	public void setMobile(String mobile) {
+		this.mobile = mobile;
+	}
+	public String getFixedTel() {
+		return fixedTel;
+	}
+	public void setFixedTel(String fixedTel) {
+		this.fixedTel = fixedTel;
+	}
+	public String getContactList() {
+		return contactList;
+	}
+	public void setContactList(String contactList) {
+		this.contactList = contactList;
+	}
+	public Integer getId() {
+		return id;
+	}
+	public void setId(Integer id) {
+		this.id = id;
+	}
+	
+
+}

+ 7 - 0
src/main/java/com/goafanti/personnel/bo/InutpPersonnelEntryBo.java

@@ -0,0 +1,7 @@
+package com.goafanti.personnel.bo;
+
+import com.goafanti.common.model.PersonnelEntry;
+
+public class InutpPersonnelEntryBo extends PersonnelEntry{
+
+}

+ 16 - 0
src/main/java/com/goafanti/personnel/bo/InutpPersonnelPromotionBo.java

@@ -0,0 +1,16 @@
+package com.goafanti.personnel.bo;
+
+import com.goafanti.common.model.PersonnelPromotion;
+
+public class InutpPersonnelPromotionBo  extends PersonnelPromotion{
+	private String promotionTimes;
+
+	public String getPromotionTimes() {
+		return promotionTimes;
+	}
+
+	public void setPromotionTimes(String promotionTimes) {
+		this.promotionTimes = promotionTimes;
+	}
+
+}

+ 41 - 3
src/main/java/com/goafanti/personnel/controller/AdminPersonnelApiController.java

@@ -19,6 +19,9 @@ import com.goafanti.common.utils.StringUtils;
 import com.goafanti.patent.bo.PatentNewBo;
 import com.goafanti.patent.service.PatentNewService;
 import com.goafanti.personnel.bo.InutpPersonnelBo;
+import com.goafanti.personnel.bo.InutpPersonnelContactBo;
+import com.goafanti.personnel.bo.InutpPersonnelEntryBo;
+import com.goafanti.personnel.bo.InutpPersonnelPromotionBo;
 import com.goafanti.personnel.service.PersonnelService;
 
 
@@ -63,9 +66,7 @@ public class AdminPersonnelApiController extends CertifyApiController {
 			res.getError().add(buildError(ErrorConstants.PARAM_ERROR, "姓名", "姓名"));
 			return res;
 		}
-		
-		 
-			try {
+		try {
 				if ( !StringUtils.isBlank(i.getBirthdays()))i.setBirthday(DateUtils.StringToDate(i.getBirthdays(), AFTConstants.YYYYMMDD));
 				if ( !StringUtils.isBlank(i.getEntryTimes()))i.setEntryTime(DateUtils.StringToDate(i.getEntryTimes(), AFTConstants.YYYYMMDD));
 				if ( !StringUtils.isBlank(i.getQuitTimes()))i.setQuitTime(DateUtils.StringToDate(i.getQuitTimes(), AFTConstants.YYYYMMDD));
@@ -76,6 +77,43 @@ public class AdminPersonnelApiController extends CertifyApiController {
 		return res.data(personnelService.updatePersonnel(i));
 	}
 	
+	/**
+	 * 修改人事联系人
+	 */
+	@RequestMapping(value = "/updateContact", method = RequestMethod.POST)
+	public Result updateContact(InutpPersonnelContactBo i){
+		Result res = new Result();
+		return res.data(personnelService.updateContact(i));
+	}
+	
+	/**
+	 * 修改人事联系人
+	 */
+	@RequestMapping(value = "/updateEntry", method = RequestMethod.POST)
+	public Result updateEntry(InutpPersonnelEntryBo i){
+		Result res = new Result();
+		return res.data(personnelService.updateEntry(i));
+	}
+	
+	/**
+	 * 修改人事晋升
+	 */
+	@RequestMapping(value = "/updatePromotion", method = RequestMethod.POST)
+	public Result updatePromotion(InutpPersonnelPromotionBo i){
+		Result res = new Result();
+		if (null==i.getPdId()) {
+			res.getError().add(buildError(ErrorConstants.PARAM_ERROR, "编号", "编号"));
+			return res;
+		}
+		try {
+			if ( !StringUtils.isBlank(i.getPromotionTimes()))i.setPromotionTime(DateUtils.StringToDate(i.getPromotionTimes(), AFTConstants.YYYYMMDD));
+		} catch (ParseException e) {
+			res.getError().add(buildError(ErrorConstants.PARAM_ERROR, "出生日期", "出生日期"));
+			return res;
+		}
+		return res.data(personnelService.updatePromotion(i));
+	}
+	
 	
 	/** 证件上传 **/
 	@RequestMapping(value = "/uploadFile", method = RequestMethod.POST)

+ 9 - 0
src/main/java/com/goafanti/personnel/service/PersonnelService.java

@@ -1,6 +1,9 @@
 package com.goafanti.personnel.service;
 
 import com.goafanti.personnel.bo.InutpPersonnelBo;
+import com.goafanti.personnel.bo.InutpPersonnelContactBo;
+import com.goafanti.personnel.bo.InutpPersonnelEntryBo;
+import com.goafanti.personnel.bo.InutpPersonnelPromotionBo;
 
 public interface PersonnelService {
 
@@ -8,4 +11,10 @@ public interface PersonnelService {
 
 	int updatePersonnel(InutpPersonnelBo i);
 
+	int updateContact(InutpPersonnelContactBo i);
+
+	int updateEntry(InutpPersonnelEntryBo i);
+
+	int updatePromotion(InutpPersonnelPromotionBo i);
+
 }

+ 68 - 1
src/main/java/com/goafanti/personnel/service/impl/PersonnelServiceImpl.java

@@ -1,17 +1,37 @@
 package com.goafanti.personnel.service.impl;
 
+import java.util.ArrayList;
+import java.util.List;
+
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
 
+import com.alibaba.fastjson.JSON;
+import com.alibaba.fastjson.JSONArray;
+import com.goafanti.common.dao.PersonnelContactMapper;
 import com.goafanti.common.dao.PersonnelDossierMapper;
+import com.goafanti.common.dao.PersonnelEntryMapper;
+import com.goafanti.common.dao.PersonnelPromotionMapper;
+import com.goafanti.common.model.PersonnelContact;
+import com.goafanti.common.model.PersonnelDossier;
+import com.goafanti.common.model.PersonnelEntry;
 import com.goafanti.core.mybatis.BaseMybatisDao;
 import com.goafanti.personnel.bo.InutpPersonnelBo;
+import com.goafanti.personnel.bo.InutpPersonnelContactBo;
+import com.goafanti.personnel.bo.InutpPersonnelEntryBo;
+import com.goafanti.personnel.bo.InutpPersonnelPromotionBo;
 import com.goafanti.personnel.service.PersonnelService;
 
 @Service
 public class PersonnelServiceImpl  extends BaseMybatisDao<PersonnelDossierMapper> implements PersonnelService {
 	@Autowired
-	private PersonnelDossierMapper personnelDossierMapper;
+	private PersonnelDossierMapper	personnelDossierMapper;
+	@Autowired
+	private PersonnelContactMapper	personnelContactMapper;
+	@Autowired
+	private PersonnelEntryMapper	personnelEntryMapper;
+	@Autowired
+	private PersonnelPromotionMapper	personnelPromotionMapper;
 	
 	@Override
 	public int addPersonnel(InutpPersonnelBo i) {
@@ -23,4 +43,51 @@ public class PersonnelServiceImpl  extends BaseMybatisDao<PersonnelDossierMapper
 		return personnelDossierMapper.updateByPrimaryKeySelective(i);
 	}
 
+	@Override
+	public int updateContact(InutpPersonnelContactBo i) {
+		PersonnelDossier p=new PersonnelDossier();
+		p.setId(i.getId());
+		p.setMobile(i.getMobile());
+		p.setFixedTel(i.getFixedTel());
+		personnelDossierMapper.updateByPrimaryKeySelective(p);
+		JSONArray ja = (JSONArray) JSON.parse(i.getContactList());
+		List<PersonnelContact> list = new ArrayList<PersonnelContact>();
+		if (ja != null && !ja.isEmpty()) {
+			PersonnelContact pc = null;
+			for (int idx = 0; idx < ja.size(); idx++) {
+				pc = ja.getJSONObject(idx).toJavaObject(PersonnelContact.class);
+				list.add(pc);
+			}
+		}
+		for (PersonnelContact pc : list) {
+			if (pc.getId()!=null) {
+				personnelContactMapper.updateByPrimaryKeySelective(pc);
+			}else {
+				personnelContactMapper.insertSelective(pc);
+			}
+		}
+		return 1;
+	}
+
+	@Override
+	public int updateEntry(InutpPersonnelEntryBo i) {
+		PersonnelEntry p=personnelEntryMapper.selectByPrimaryKey(i.getId());
+		if (p==null||p.getId()==null) {
+			personnelEntryMapper.insertSelective(i);
+		}else {
+			personnelEntryMapper.updateByPrimaryKeySelective(i);
+		}
+		return 1;
+	}
+
+	@Override
+	public int updatePromotion(InutpPersonnelPromotionBo i) {
+		if (i.getId()==null) {
+			personnelPromotionMapper.insertSelective(i);
+		}else {
+			personnelPromotionMapper.updateByPrimaryKeySelective(i);
+		}
+		return 0;
+	}
+
 }