<?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="org.qinan.safetyeval.infrastructure.persistence.mapper.QualFilingPersonnelChangeMapper">

    <resultMap type="org.qinan.safetyeval.infrastructure.persistence.domainobject.QualFilingPersonnelChangeDO"
               id="QualFilingPersonnelChangeResult">
        <id property="id" column="id"/>
        <result property="filingChangeId" column="filing_change_id"/>
        <result property="sourcePersonnelId" column="source_personnel_id"/>
        <result property="personName" column="person_name"/>
        <result property="personTypeCode" column="person_type_code"/>
        <result property="personTypeName" column="person_type_name"/>
        <result property="positionName" column="position_name"/>
        <result property="titleName" column="title_name"/>
        <result property="genderCode" column="gender_code"/>
        <result property="genderName" column="gender_name"/>
        <result property="birthDate" column="birth_date"/>
        <result property="joinWorkDate" column="join_work_date"/>
        <result property="idCardNo" column="id_card_no"/>
        <result property="currentAddress" column="current_address"/>
        <result property="officeAddress" column="office_address"/>
        <result property="educationCode" column="education_code"/>
        <result property="educationName" column="education_name"/>
        <result property="graduateSchool" column="graduate_school"/>
        <result property="major" column="major"/>
        <result property="qualScope" column="qual_scope"/>
        <result property="publications" column="publications"/>
        <result property="professionalLevelCert" column="professional_level_cert"/>
        <result property="registerEngineerFlag" column="register_engineer_flag"/>
        <result property="abilityDeclaration" column="ability_declaration"/>
        <result property="workExperience" column="work_experience"/>
        <result property="proofMaterialUrl" column="proof_material_url"/>
        <result property="deleteEnum" column="delete_enum"/>
        <result property="remarks" column="remarks"/>
        <result property="createName" column="create_name"/>
        <result property="updateName" column="update_name"/>
        <result property="tenantId" column="tenant_id"/>
        <result property="orgId" column="org_id"/>
        <result property="version" column="version"/>
        <result property="createTime" column="create_time"/>
        <result property="updateTime" column="update_time"/>
        <result property="createId" column="create_id"/>
        <result property="updateId" column="update_id"/>
        <result property="env" column="env"/>
    </resultMap>

    <sql id="selectQualFilingPersonnelChange">
        select id,
               filing_change_id,
               source_personnel_id,
               person_name,
               person_type_code,
               person_type_name,
               position_name,
               title_name,
               gender_code,
               gender_name,
               birth_date,
               join_work_date,
               id_card_no,
               current_address,
               office_address,
               education_code,
               education_name,
               graduate_school,
               major,
               qual_scope,
               publications,
               professional_level_cert,
               register_engineer_flag,
               ability_declaration,
               work_experience,
               proof_material_url,
               delete_enum,
               remarks,
               create_name,
               update_name,
               tenant_id,
               org_id,
               version,
               create_time,
               update_time,
               create_id,
               update_id,
               env
        from qual_filing_personnel_change
    </sql>

</mapper>