Преглед изворни кода

人事开发

Signed-off-by: anderx <312518615@qq.com>
anderx пре 5 година
родитељ
комит
a581ea1d70

+ 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="t_arrears_dun"/>
+    <table schema="aft" tableName="personnel_dossier"/>
     <!-- 如果改动 t_order_task表,记得修改修改接口,不然会导致服务器无法启动 -->
   </context>
 </generatorConfiguration>

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

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

+ 792 - 0
src/main/java/com/goafanti/common/mapper/PersonnelDossierMapper.xml

@@ -0,0 +1,792 @@
+<?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.PersonnelDossierMapper">
+  <resultMap id="BaseResultMap" type="com.goafanti.common.model.PersonnelDossier">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Thu Apr 23 16:39:48 CST 2020.
+    -->
+    <id column="id" jdbcType="INTEGER" property="id" />
+    <result column="aid" jdbcType="VARCHAR" property="aid" />
+    <result column="door_id" jdbcType="INTEGER" property="doorId" />
+    <result column="name" jdbcType="VARCHAR" property="name" />
+    <result column="birthday" jdbcType="TIMESTAMP" property="birthday" />
+    <result column="sex" jdbcType="INTEGER" property="sex" />
+    <result column="mobile" jdbcType="VARCHAR" property="mobile" />
+    <result column="fixed_tel" jdbcType="VARCHAR" property="fixedTel" />
+    <result column="nation" jdbcType="VARCHAR" property="nation" />
+    <result column="residence_province" jdbcType="INTEGER" property="residenceProvince" />
+    <result column="residence_city" jdbcType="INTEGER" property="residenceCity" />
+    <result column="residence_area" jdbcType="INTEGER" property="residenceArea" />
+    <result column="residence_address" jdbcType="VARCHAR" property="residenceAddress" />
+    <result column="native_place_province" jdbcType="INTEGER" property="nativePlaceProvince" />
+    <result column="native_place_city" jdbcType="INTEGER" property="nativePlaceCity" />
+    <result column="now_province" jdbcType="INTEGER" property="nowProvince" />
+    <result column="now_city" jdbcType="INTEGER" property="nowCity" />
+    <result column="now_area" jdbcType="INTEGER" property="nowArea" />
+    <result column="now_address" jdbcType="VARCHAR" property="nowAddress" />
+    <result column="id_card" jdbcType="VARCHAR" property="idCard" />
+    <result column="certification_authority" jdbcType="VARCHAR" property="certificationAuthority" />
+    <result column="marriage" jdbcType="INTEGER" property="marriage" />
+    <result column="political_outlook" jdbcType="VARCHAR" property="politicalOutlook" />
+    <result column="son" jdbcType="INTEGER" property="son" />
+    <result column="girl" jdbcType="INTEGER" property="girl" />
+    <result column="status" jdbcType="INTEGER" property="status" />
+    <result column="system" jdbcType="INTEGER" property="system" />
+    <result column="job_nature" jdbcType="INTEGER" property="jobNature" />
+    <result column="job_nature_remarks" jdbcType="VARCHAR" property="jobNatureRemarks" />
+    <result column="entry_time" jdbcType="TIMESTAMP" property="entryTime" />
+    <result column="quit_time" jdbcType="TIMESTAMP" property="quitTime" />
+    <result column="company" jdbcType="VARCHAR" property="company" />
+    <result column="lvl" jdbcType="INTEGER" property="lvl" />
+    <result column="jobs" jdbcType="INTEGER" property="jobs" />
+    <result column="star" jdbcType="INTEGER" property="star" />
+    <result column="allowance" jdbcType="DECIMAL" property="allowance" />
+    <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 Thu Apr 23 16:39:48 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 Thu Apr 23 16:39:48 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 Thu Apr 23 16:39:48 CST 2020.
+    -->
+    id, aid, door_id, name, birthday, sex, mobile, fixed_tel, nation, residence_province, 
+    residence_city, residence_area, residence_address, native_place_province, native_place_city, 
+    now_province, now_city, now_area, now_address, id_card, certification_authority, 
+    marriage, political_outlook, son, girl, status, system, job_nature, job_nature_remarks, 
+    entry_time, quit_time, company, lvl, jobs, star, allowance, create_time
+  </sql>
+  <select id="selectByExample" parameterType="com.goafanti.common.model.PersonnelDossierExample" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Thu Apr 23 16:39:48 CST 2020.
+    -->
+    select
+    <if test="distinct">
+      distinct
+    </if>
+    <include refid="Base_Column_List" />
+    from personnel_dossier
+    <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 Thu Apr 23 16:39:48 CST 2020.
+    -->
+    select 
+    <include refid="Base_Column_List" />
+    from personnel_dossier
+    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 Thu Apr 23 16:39:48 CST 2020.
+    -->
+    delete from personnel_dossier
+    where id = #{id,jdbcType=INTEGER}
+  </delete>
+  <delete id="deleteByExample" parameterType="com.goafanti.common.model.PersonnelDossierExample">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Thu Apr 23 16:39:48 CST 2020.
+    -->
+    delete from personnel_dossier
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </delete>
+  <insert id="insert" parameterType="com.goafanti.common.model.PersonnelDossier">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Thu Apr 23 16:39:48 CST 2020.
+    -->
+    insert into personnel_dossier (id, aid, door_id, 
+      name, birthday, sex, 
+      mobile, fixed_tel, nation, 
+      residence_province, residence_city, residence_area, 
+      residence_address, native_place_province, 
+      native_place_city, now_province, now_city, 
+      now_area, now_address, id_card, 
+      certification_authority, marriage, political_outlook, 
+      son, girl, status, 
+      system, job_nature, job_nature_remarks, 
+      entry_time, quit_time, company, 
+      lvl, jobs, star, allowance, 
+      create_time)
+    values (#{id,jdbcType=INTEGER}, #{aid,jdbcType=VARCHAR}, #{doorId,jdbcType=INTEGER}, 
+      #{name,jdbcType=VARCHAR}, #{birthday,jdbcType=TIMESTAMP}, #{sex,jdbcType=INTEGER}, 
+      #{mobile,jdbcType=VARCHAR}, #{fixedTel,jdbcType=VARCHAR}, #{nation,jdbcType=VARCHAR}, 
+      #{residenceProvince,jdbcType=INTEGER}, #{residenceCity,jdbcType=INTEGER}, #{residenceArea,jdbcType=INTEGER}, 
+      #{residenceAddress,jdbcType=VARCHAR}, #{nativePlaceProvince,jdbcType=INTEGER}, 
+      #{nativePlaceCity,jdbcType=INTEGER}, #{nowProvince,jdbcType=INTEGER}, #{nowCity,jdbcType=INTEGER}, 
+      #{nowArea,jdbcType=INTEGER}, #{nowAddress,jdbcType=VARCHAR}, #{idCard,jdbcType=VARCHAR}, 
+      #{certificationAuthority,jdbcType=VARCHAR}, #{marriage,jdbcType=INTEGER}, #{politicalOutlook,jdbcType=VARCHAR}, 
+      #{son,jdbcType=INTEGER}, #{girl,jdbcType=INTEGER}, #{status,jdbcType=INTEGER}, 
+      #{system,jdbcType=INTEGER}, #{jobNature,jdbcType=INTEGER}, #{jobNatureRemarks,jdbcType=VARCHAR}, 
+      #{entryTime,jdbcType=TIMESTAMP}, #{quitTime,jdbcType=TIMESTAMP}, #{company,jdbcType=VARCHAR}, 
+      #{lvl,jdbcType=INTEGER}, #{jobs,jdbcType=INTEGER}, #{star,jdbcType=INTEGER}, #{allowance,jdbcType=DECIMAL}, 
+      #{createTime,jdbcType=TIMESTAMP})
+  </insert>
+  <insert id="insertSelective" parameterType="com.goafanti.common.model.PersonnelDossier">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Thu Apr 23 16:39:48 CST 2020.
+    -->
+    insert into personnel_dossier
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="id != null">
+        id,
+      </if>
+      <if test="aid != null">
+        aid,
+      </if>
+      <if test="doorId != null">
+        door_id,
+      </if>
+      <if test="name != null">
+        name,
+      </if>
+      <if test="birthday != null">
+        birthday,
+      </if>
+      <if test="sex != null">
+        sex,
+      </if>
+      <if test="mobile != null">
+        mobile,
+      </if>
+      <if test="fixedTel != null">
+        fixed_tel,
+      </if>
+      <if test="nation != null">
+        nation,
+      </if>
+      <if test="residenceProvince != null">
+        residence_province,
+      </if>
+      <if test="residenceCity != null">
+        residence_city,
+      </if>
+      <if test="residenceArea != null">
+        residence_area,
+      </if>
+      <if test="residenceAddress != null">
+        residence_address,
+      </if>
+      <if test="nativePlaceProvince != null">
+        native_place_province,
+      </if>
+      <if test="nativePlaceCity != null">
+        native_place_city,
+      </if>
+      <if test="nowProvince != null">
+        now_province,
+      </if>
+      <if test="nowCity != null">
+        now_city,
+      </if>
+      <if test="nowArea != null">
+        now_area,
+      </if>
+      <if test="nowAddress != null">
+        now_address,
+      </if>
+      <if test="idCard != null">
+        id_card,
+      </if>
+      <if test="certificationAuthority != null">
+        certification_authority,
+      </if>
+      <if test="marriage != null">
+        marriage,
+      </if>
+      <if test="politicalOutlook != null">
+        political_outlook,
+      </if>
+      <if test="son != null">
+        son,
+      </if>
+      <if test="girl != null">
+        girl,
+      </if>
+      <if test="status != null">
+        status,
+      </if>
+      <if test="system != null">
+        system,
+      </if>
+      <if test="jobNature != null">
+        job_nature,
+      </if>
+      <if test="jobNatureRemarks != null">
+        job_nature_remarks,
+      </if>
+      <if test="entryTime != null">
+        entry_time,
+      </if>
+      <if test="quitTime != null">
+        quit_time,
+      </if>
+      <if test="company != null">
+        company,
+      </if>
+      <if test="lvl != null">
+        lvl,
+      </if>
+      <if test="jobs != null">
+        jobs,
+      </if>
+      <if test="star != null">
+        star,
+      </if>
+      <if test="allowance != null">
+        allowance,
+      </if>
+      <if test="createTime != null">
+        create_time,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="id != null">
+        #{id,jdbcType=INTEGER},
+      </if>
+      <if test="aid != null">
+        #{aid,jdbcType=VARCHAR},
+      </if>
+      <if test="doorId != null">
+        #{doorId,jdbcType=INTEGER},
+      </if>
+      <if test="name != null">
+        #{name,jdbcType=VARCHAR},
+      </if>
+      <if test="birthday != null">
+        #{birthday,jdbcType=TIMESTAMP},
+      </if>
+      <if test="sex != null">
+        #{sex,jdbcType=INTEGER},
+      </if>
+      <if test="mobile != null">
+        #{mobile,jdbcType=VARCHAR},
+      </if>
+      <if test="fixedTel != null">
+        #{fixedTel,jdbcType=VARCHAR},
+      </if>
+      <if test="nation != null">
+        #{nation,jdbcType=VARCHAR},
+      </if>
+      <if test="residenceProvince != null">
+        #{residenceProvince,jdbcType=INTEGER},
+      </if>
+      <if test="residenceCity != null">
+        #{residenceCity,jdbcType=INTEGER},
+      </if>
+      <if test="residenceArea != null">
+        #{residenceArea,jdbcType=INTEGER},
+      </if>
+      <if test="residenceAddress != null">
+        #{residenceAddress,jdbcType=VARCHAR},
+      </if>
+      <if test="nativePlaceProvince != null">
+        #{nativePlaceProvince,jdbcType=INTEGER},
+      </if>
+      <if test="nativePlaceCity != null">
+        #{nativePlaceCity,jdbcType=INTEGER},
+      </if>
+      <if test="nowProvince != null">
+        #{nowProvince,jdbcType=INTEGER},
+      </if>
+      <if test="nowCity != null">
+        #{nowCity,jdbcType=INTEGER},
+      </if>
+      <if test="nowArea != null">
+        #{nowArea,jdbcType=INTEGER},
+      </if>
+      <if test="nowAddress != null">
+        #{nowAddress,jdbcType=VARCHAR},
+      </if>
+      <if test="idCard != null">
+        #{idCard,jdbcType=VARCHAR},
+      </if>
+      <if test="certificationAuthority != null">
+        #{certificationAuthority,jdbcType=VARCHAR},
+      </if>
+      <if test="marriage != null">
+        #{marriage,jdbcType=INTEGER},
+      </if>
+      <if test="politicalOutlook != null">
+        #{politicalOutlook,jdbcType=VARCHAR},
+      </if>
+      <if test="son != null">
+        #{son,jdbcType=INTEGER},
+      </if>
+      <if test="girl != null">
+        #{girl,jdbcType=INTEGER},
+      </if>
+      <if test="status != null">
+        #{status,jdbcType=INTEGER},
+      </if>
+      <if test="system != null">
+        #{system,jdbcType=INTEGER},
+      </if>
+      <if test="jobNature != null">
+        #{jobNature,jdbcType=INTEGER},
+      </if>
+      <if test="jobNatureRemarks != null">
+        #{jobNatureRemarks,jdbcType=VARCHAR},
+      </if>
+      <if test="entryTime != null">
+        #{entryTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="quitTime != null">
+        #{quitTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="company != null">
+        #{company,jdbcType=VARCHAR},
+      </if>
+      <if test="lvl != null">
+        #{lvl,jdbcType=INTEGER},
+      </if>
+      <if test="jobs != null">
+        #{jobs,jdbcType=INTEGER},
+      </if>
+      <if test="star != null">
+        #{star,jdbcType=INTEGER},
+      </if>
+      <if test="allowance != null">
+        #{allowance,jdbcType=DECIMAL},
+      </if>
+      <if test="createTime != null">
+        #{createTime,jdbcType=TIMESTAMP},
+      </if>
+    </trim>
+  </insert>
+  <select id="countByExample" parameterType="com.goafanti.common.model.PersonnelDossierExample" resultType="java.lang.Long">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Thu Apr 23 16:39:48 CST 2020.
+    -->
+    select count(*) from personnel_dossier
+    <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 Thu Apr 23 16:39:48 CST 2020.
+    -->
+    update personnel_dossier
+    <set>
+      <if test="record.id != null">
+        id = #{record.id,jdbcType=INTEGER},
+      </if>
+      <if test="record.aid != null">
+        aid = #{record.aid,jdbcType=VARCHAR},
+      </if>
+      <if test="record.doorId != null">
+        door_id = #{record.doorId,jdbcType=INTEGER},
+      </if>
+      <if test="record.name != null">
+        name = #{record.name,jdbcType=VARCHAR},
+      </if>
+      <if test="record.birthday != null">
+        birthday = #{record.birthday,jdbcType=TIMESTAMP},
+      </if>
+      <if test="record.sex != null">
+        sex = #{record.sex,jdbcType=INTEGER},
+      </if>
+      <if test="record.mobile != null">
+        mobile = #{record.mobile,jdbcType=VARCHAR},
+      </if>
+      <if test="record.fixedTel != null">
+        fixed_tel = #{record.fixedTel,jdbcType=VARCHAR},
+      </if>
+      <if test="record.nation != null">
+        nation = #{record.nation,jdbcType=VARCHAR},
+      </if>
+      <if test="record.residenceProvince != null">
+        residence_province = #{record.residenceProvince,jdbcType=INTEGER},
+      </if>
+      <if test="record.residenceCity != null">
+        residence_city = #{record.residenceCity,jdbcType=INTEGER},
+      </if>
+      <if test="record.residenceArea != null">
+        residence_area = #{record.residenceArea,jdbcType=INTEGER},
+      </if>
+      <if test="record.residenceAddress != null">
+        residence_address = #{record.residenceAddress,jdbcType=VARCHAR},
+      </if>
+      <if test="record.nativePlaceProvince != null">
+        native_place_province = #{record.nativePlaceProvince,jdbcType=INTEGER},
+      </if>
+      <if test="record.nativePlaceCity != null">
+        native_place_city = #{record.nativePlaceCity,jdbcType=INTEGER},
+      </if>
+      <if test="record.nowProvince != null">
+        now_province = #{record.nowProvince,jdbcType=INTEGER},
+      </if>
+      <if test="record.nowCity != null">
+        now_city = #{record.nowCity,jdbcType=INTEGER},
+      </if>
+      <if test="record.nowArea != null">
+        now_area = #{record.nowArea,jdbcType=INTEGER},
+      </if>
+      <if test="record.nowAddress != null">
+        now_address = #{record.nowAddress,jdbcType=VARCHAR},
+      </if>
+      <if test="record.idCard != null">
+        id_card = #{record.idCard,jdbcType=VARCHAR},
+      </if>
+      <if test="record.certificationAuthority != null">
+        certification_authority = #{record.certificationAuthority,jdbcType=VARCHAR},
+      </if>
+      <if test="record.marriage != null">
+        marriage = #{record.marriage,jdbcType=INTEGER},
+      </if>
+      <if test="record.politicalOutlook != null">
+        political_outlook = #{record.politicalOutlook,jdbcType=VARCHAR},
+      </if>
+      <if test="record.son != null">
+        son = #{record.son,jdbcType=INTEGER},
+      </if>
+      <if test="record.girl != null">
+        girl = #{record.girl,jdbcType=INTEGER},
+      </if>
+      <if test="record.status != null">
+        status = #{record.status,jdbcType=INTEGER},
+      </if>
+      <if test="record.system != null">
+        system = #{record.system,jdbcType=INTEGER},
+      </if>
+      <if test="record.jobNature != null">
+        job_nature = #{record.jobNature,jdbcType=INTEGER},
+      </if>
+      <if test="record.jobNatureRemarks != null">
+        job_nature_remarks = #{record.jobNatureRemarks,jdbcType=VARCHAR},
+      </if>
+      <if test="record.entryTime != null">
+        entry_time = #{record.entryTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="record.quitTime != null">
+        quit_time = #{record.quitTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="record.company != null">
+        company = #{record.company,jdbcType=VARCHAR},
+      </if>
+      <if test="record.lvl != null">
+        lvl = #{record.lvl,jdbcType=INTEGER},
+      </if>
+      <if test="record.jobs != null">
+        jobs = #{record.jobs,jdbcType=INTEGER},
+      </if>
+      <if test="record.star != null">
+        star = #{record.star,jdbcType=INTEGER},
+      </if>
+      <if test="record.allowance != null">
+        allowance = #{record.allowance,jdbcType=DECIMAL},
+      </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 Thu Apr 23 16:39:48 CST 2020.
+    -->
+    update personnel_dossier
+    set id = #{record.id,jdbcType=INTEGER},
+      aid = #{record.aid,jdbcType=VARCHAR},
+      door_id = #{record.doorId,jdbcType=INTEGER},
+      name = #{record.name,jdbcType=VARCHAR},
+      birthday = #{record.birthday,jdbcType=TIMESTAMP},
+      sex = #{record.sex,jdbcType=INTEGER},
+      mobile = #{record.mobile,jdbcType=VARCHAR},
+      fixed_tel = #{record.fixedTel,jdbcType=VARCHAR},
+      nation = #{record.nation,jdbcType=VARCHAR},
+      residence_province = #{record.residenceProvince,jdbcType=INTEGER},
+      residence_city = #{record.residenceCity,jdbcType=INTEGER},
+      residence_area = #{record.residenceArea,jdbcType=INTEGER},
+      residence_address = #{record.residenceAddress,jdbcType=VARCHAR},
+      native_place_province = #{record.nativePlaceProvince,jdbcType=INTEGER},
+      native_place_city = #{record.nativePlaceCity,jdbcType=INTEGER},
+      now_province = #{record.nowProvince,jdbcType=INTEGER},
+      now_city = #{record.nowCity,jdbcType=INTEGER},
+      now_area = #{record.nowArea,jdbcType=INTEGER},
+      now_address = #{record.nowAddress,jdbcType=VARCHAR},
+      id_card = #{record.idCard,jdbcType=VARCHAR},
+      certification_authority = #{record.certificationAuthority,jdbcType=VARCHAR},
+      marriage = #{record.marriage,jdbcType=INTEGER},
+      political_outlook = #{record.politicalOutlook,jdbcType=VARCHAR},
+      son = #{record.son,jdbcType=INTEGER},
+      girl = #{record.girl,jdbcType=INTEGER},
+      status = #{record.status,jdbcType=INTEGER},
+      system = #{record.system,jdbcType=INTEGER},
+      job_nature = #{record.jobNature,jdbcType=INTEGER},
+      job_nature_remarks = #{record.jobNatureRemarks,jdbcType=VARCHAR},
+      entry_time = #{record.entryTime,jdbcType=TIMESTAMP},
+      quit_time = #{record.quitTime,jdbcType=TIMESTAMP},
+      company = #{record.company,jdbcType=VARCHAR},
+      lvl = #{record.lvl,jdbcType=INTEGER},
+      jobs = #{record.jobs,jdbcType=INTEGER},
+      star = #{record.star,jdbcType=INTEGER},
+      allowance = #{record.allowance,jdbcType=DECIMAL},
+      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.PersonnelDossier">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Thu Apr 23 16:39:48 CST 2020.
+    -->
+    update personnel_dossier
+    <set>
+      <if test="aid != null">
+        aid = #{aid,jdbcType=VARCHAR},
+      </if>
+      <if test="doorId != null">
+        door_id = #{doorId,jdbcType=INTEGER},
+      </if>
+      <if test="name != null">
+        name = #{name,jdbcType=VARCHAR},
+      </if>
+      <if test="birthday != null">
+        birthday = #{birthday,jdbcType=TIMESTAMP},
+      </if>
+      <if test="sex != null">
+        sex = #{sex,jdbcType=INTEGER},
+      </if>
+      <if test="mobile != null">
+        mobile = #{mobile,jdbcType=VARCHAR},
+      </if>
+      <if test="fixedTel != null">
+        fixed_tel = #{fixedTel,jdbcType=VARCHAR},
+      </if>
+      <if test="nation != null">
+        nation = #{nation,jdbcType=VARCHAR},
+      </if>
+      <if test="residenceProvince != null">
+        residence_province = #{residenceProvince,jdbcType=INTEGER},
+      </if>
+      <if test="residenceCity != null">
+        residence_city = #{residenceCity,jdbcType=INTEGER},
+      </if>
+      <if test="residenceArea != null">
+        residence_area = #{residenceArea,jdbcType=INTEGER},
+      </if>
+      <if test="residenceAddress != null">
+        residence_address = #{residenceAddress,jdbcType=VARCHAR},
+      </if>
+      <if test="nativePlaceProvince != null">
+        native_place_province = #{nativePlaceProvince,jdbcType=INTEGER},
+      </if>
+      <if test="nativePlaceCity != null">
+        native_place_city = #{nativePlaceCity,jdbcType=INTEGER},
+      </if>
+      <if test="nowProvince != null">
+        now_province = #{nowProvince,jdbcType=INTEGER},
+      </if>
+      <if test="nowCity != null">
+        now_city = #{nowCity,jdbcType=INTEGER},
+      </if>
+      <if test="nowArea != null">
+        now_area = #{nowArea,jdbcType=INTEGER},
+      </if>
+      <if test="nowAddress != null">
+        now_address = #{nowAddress,jdbcType=VARCHAR},
+      </if>
+      <if test="idCard != null">
+        id_card = #{idCard,jdbcType=VARCHAR},
+      </if>
+      <if test="certificationAuthority != null">
+        certification_authority = #{certificationAuthority,jdbcType=VARCHAR},
+      </if>
+      <if test="marriage != null">
+        marriage = #{marriage,jdbcType=INTEGER},
+      </if>
+      <if test="politicalOutlook != null">
+        political_outlook = #{politicalOutlook,jdbcType=VARCHAR},
+      </if>
+      <if test="son != null">
+        son = #{son,jdbcType=INTEGER},
+      </if>
+      <if test="girl != null">
+        girl = #{girl,jdbcType=INTEGER},
+      </if>
+      <if test="status != null">
+        status = #{status,jdbcType=INTEGER},
+      </if>
+      <if test="system != null">
+        system = #{system,jdbcType=INTEGER},
+      </if>
+      <if test="jobNature != null">
+        job_nature = #{jobNature,jdbcType=INTEGER},
+      </if>
+      <if test="jobNatureRemarks != null">
+        job_nature_remarks = #{jobNatureRemarks,jdbcType=VARCHAR},
+      </if>
+      <if test="entryTime != null">
+        entry_time = #{entryTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="quitTime != null">
+        quit_time = #{quitTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="company != null">
+        company = #{company,jdbcType=VARCHAR},
+      </if>
+      <if test="lvl != null">
+        lvl = #{lvl,jdbcType=INTEGER},
+      </if>
+      <if test="jobs != null">
+        jobs = #{jobs,jdbcType=INTEGER},
+      </if>
+      <if test="star != null">
+        star = #{star,jdbcType=INTEGER},
+      </if>
+      <if test="allowance != null">
+        allowance = #{allowance,jdbcType=DECIMAL},
+      </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.PersonnelDossier">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Thu Apr 23 16:39:48 CST 2020.
+    -->
+    update personnel_dossier
+    set aid = #{aid,jdbcType=VARCHAR},
+      door_id = #{doorId,jdbcType=INTEGER},
+      name = #{name,jdbcType=VARCHAR},
+      birthday = #{birthday,jdbcType=TIMESTAMP},
+      sex = #{sex,jdbcType=INTEGER},
+      mobile = #{mobile,jdbcType=VARCHAR},
+      fixed_tel = #{fixedTel,jdbcType=VARCHAR},
+      nation = #{nation,jdbcType=VARCHAR},
+      residence_province = #{residenceProvince,jdbcType=INTEGER},
+      residence_city = #{residenceCity,jdbcType=INTEGER},
+      residence_area = #{residenceArea,jdbcType=INTEGER},
+      residence_address = #{residenceAddress,jdbcType=VARCHAR},
+      native_place_province = #{nativePlaceProvince,jdbcType=INTEGER},
+      native_place_city = #{nativePlaceCity,jdbcType=INTEGER},
+      now_province = #{nowProvince,jdbcType=INTEGER},
+      now_city = #{nowCity,jdbcType=INTEGER},
+      now_area = #{nowArea,jdbcType=INTEGER},
+      now_address = #{nowAddress,jdbcType=VARCHAR},
+      id_card = #{idCard,jdbcType=VARCHAR},
+      certification_authority = #{certificationAuthority,jdbcType=VARCHAR},
+      marriage = #{marriage,jdbcType=INTEGER},
+      political_outlook = #{politicalOutlook,jdbcType=VARCHAR},
+      son = #{son,jdbcType=INTEGER},
+      girl = #{girl,jdbcType=INTEGER},
+      status = #{status,jdbcType=INTEGER},
+      system = #{system,jdbcType=INTEGER},
+      job_nature = #{jobNature,jdbcType=INTEGER},
+      job_nature_remarks = #{jobNatureRemarks,jdbcType=VARCHAR},
+      entry_time = #{entryTime,jdbcType=TIMESTAMP},
+      quit_time = #{quitTime,jdbcType=TIMESTAMP},
+      company = #{company,jdbcType=VARCHAR},
+      lvl = #{lvl,jdbcType=INTEGER},
+      jobs = #{jobs,jdbcType=INTEGER},
+      star = #{star,jdbcType=INTEGER},
+      allowance = #{allowance,jdbcType=DECIMAL},
+      create_time = #{createTime,jdbcType=TIMESTAMP}
+    where id = #{id,jdbcType=INTEGER}
+  </update>
+</mapper>

Разлика између датотеке није приказан због своје велике величине
+ 1227 - 0
src/main/java/com/goafanti/common/model/PersonnelDossier.java


Разлика између датотеке није приказан због своје велике величине
+ 2644 - 0
src/main/java/com/goafanti/common/model/PersonnelDossierExample.java


+ 1 - 0
src/main/java/com/goafanti/order/service/impl/OrderChangeServiceImpl.java

@@ -567,6 +567,7 @@ public class OrderChangeServiceImpl extends BaseMybatisDao<NewOrderChangeMapper>
 			throw new BusinessException("收款节点金额总和不等于合同总金额。");
 		}
 	}
+	
 
 	/**
 	   *   判断变更项目是否拆分父子数量是否一直

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

@@ -0,0 +1,16 @@
+package com.goafanti.personnel.bo;
+
+import com.goafanti.common.model.PersonnelDossier;
+
+public class InutpPersonnelBo  extends PersonnelDossier{
+	private String birthdays;
+
+	public String getBirthdays() {
+		return birthdays;
+	}
+
+	public void setBirthdays(String birthdays) {
+		this.birthdays = birthdays;
+	}
+
+}

+ 88 - 0
src/main/java/com/goafanti/personnel/controller/AdminPersonnelApiController.java

@@ -0,0 +1,88 @@
+package com.goafanti.personnel.controller;
+
+import java.text.ParseException;
+import java.text.SimpleDateFormat;
+
+import javax.annotation.Resource;
+import javax.servlet.http.HttpServletRequest;
+
+import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestMethod;
+
+import com.goafanti.common.bo.Result;
+import com.goafanti.common.constant.AFTConstants;
+import com.goafanti.common.constant.ErrorConstants;
+import com.goafanti.common.controller.CertifyApiController;
+import com.goafanti.common.utils.DateUtils;
+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.service.PersonnelService;
+
+
+@Controller
+@RequestMapping(value = "/api/admin/personnel")
+public class AdminPersonnelApiController extends CertifyApiController {
+
+	@Resource
+	private PersonnelService personnelService;
+ 
+	
+	/**
+	 * 新增人事档案
+	 */
+	@RequestMapping(value = "/add", method = RequestMethod.POST)
+	public Result addPersonnel(InutpPersonnelBo i){
+		Result res = new Result();
+		if (StringUtils.isBlank(i.getName())) {
+			res.getError().add(buildError(ErrorConstants.PARAM_ERROR, "姓名", "姓名"));
+			return res;
+		}
+		
+		if ( !StringUtils.isBlank(i.getBirthdays())) {
+			try {
+				i.setBirthday(DateUtils.StringToDate(i.getBirthdays(), AFTConstants.YYYYMMDD));
+			} catch (ParseException e) {
+				res.getError().add(buildError(ErrorConstants.PARAM_ERROR, "出生日期", "出生日期"));
+				return res;
+			}
+		}
+		return res.data(personnelService.addPersonnel(i));
+	}
+	
+	
+	/**
+	 * 修改人事档案
+	 */
+	@RequestMapping(value = "/update", method = RequestMethod.POST)
+	public Result updatePersonnel(InutpPersonnelBo i){
+		Result res = new Result();
+		if (StringUtils.isBlank(i.getName())) {
+			res.getError().add(buildError(ErrorConstants.PARAM_ERROR, "姓名", "姓名"));
+			return res;
+		}
+		
+		if ( !StringUtils.isBlank(i.getBirthdays())) {
+			try {
+				i.setBirthday(DateUtils.StringToDate(i.getBirthdays(), AFTConstants.YYYYMMDD));
+			} catch (ParseException e) {
+				res.getError().add(buildError(ErrorConstants.PARAM_ERROR, "出生日期", "出生日期"));
+				return res;
+			}
+		}
+		return res.data(personnelService.updatePersonnel(i));
+	}
+	
+	
+	/** 证件上传 **/
+	@RequestMapping(value = "/uploadFile", method = RequestMethod.POST)
+	public Result uploadRefundOrderFile(HttpServletRequest req,String sign){
+		Result res = new Result();
+		//order_refund_file
+		res.setData(handleFile(res, "/personnel/", false, req, sign));
+		return res;
+	}
+	
+}

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

@@ -0,0 +1,11 @@
+package com.goafanti.personnel.service;
+
+import com.goafanti.personnel.bo.InutpPersonnelBo;
+
+public interface PersonnelService {
+
+	int addPersonnel(InutpPersonnelBo i);
+
+	int updatePersonnel(InutpPersonnelBo i);
+
+}

+ 26 - 0
src/main/java/com/goafanti/personnel/service/impl/PersonnelServiceImpl.java

@@ -0,0 +1,26 @@
+package com.goafanti.personnel.service.impl;
+
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import com.goafanti.common.dao.PersonnelDossierMapper;
+import com.goafanti.core.mybatis.BaseMybatisDao;
+import com.goafanti.personnel.bo.InutpPersonnelBo;
+import com.goafanti.personnel.service.PersonnelService;
+
+@Service
+public class PersonnelServiceImpl  extends BaseMybatisDao<PersonnelDossierMapper> implements PersonnelService {
+	@Autowired
+	private PersonnelDossierMapper personnelDossierMapper;
+	
+	@Override
+	public int addPersonnel(InutpPersonnelBo i) {
+		return personnelDossierMapper.insertSelective(i);
+	}
+
+	@Override
+	public int updatePersonnel(InutpPersonnelBo i) {
+		return personnelDossierMapper.updateByPrimaryKeySelective(i);
+	}
+
+}