<?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.testor.module.contractor.ledger.dao.TContractorPersonDao">
    <!-- 开启二级缓存 -->
    <!-- <cache type="org.mybatis.caches.ehcache.LoggingEhcache"/> -->
    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="com.testor.module.contractor.ledger.model.domain.TContractorPerson">
                <id column="id" property="id"/>
                <id column="contractor_id" property="contractorId"/>
                <id column="name" property="name"/>
                <id column="gender" property="gender"/>
                <id column="job_status" property="jobStatus"/>
                <id column="id_card_no" property="idCardNo"/>
                <id column="age" property="age"/>
                <id column="hire_date" property="hireDate"/>
                <id column="job_nature_id" property="jobNatureId"/>
                <id column="job_nature" property="jobNature"/>
                <id column="job_title_id" property="jobTitleId"/>
                <id column="job_title" property="jobTitle"/>
                <id column="tel" property="tel"/>
                <id column="contract_term" property="contractTerm"/>
                <id column="is_oc" property="isOc"/>
                <id column="oc_disease_id" property="ocDiseaseId"/>
                <id column="oc_disease" property="ocDisease"/>
                <id column="health" property="health"/>
                <id column="contraindication" property="contraindication"/>
                <id column="insurance_period" property="insurancePeriod"/>
                <id column="insurance_type" property="insuranceType"/>
                <id column="photo" property="photo"/>
                <id column="insurance" property="insurance"/>
                <id column="health_report" property="healthReport"/>
                <id column="employee_contract" property="employeeContract"/>
                <id column="org_id" property="orgId"/>
                <id column="contract_period" property="contractPeriod"/>
    </resultMap>
</mapper>