<?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.springblade.person.mapper.FertileWomanMapper">

    <!-- 通用查询映射结果 -->
    <resultMap id="fertileWomanResultMap" type="org.springblade.person.entity.FertileWoman">
        <result column="id" property="id"/>
        <result column="create_user" property="createUser"/>
        <result column="create_dept" property="createDept"/>
        <result column="create_time" property="createTime"/>
        <result column="update_user" property="updateUser"/>
        <result column="update_time" property="updateTime"/>
        <result column="status" property="status"/>
        <result column="is_deleted" property="isDeleted"/>
        <result column="parent_id" property="parentId"/>
        <result column="marriage_times" property="marriageTimes"/>
        <result column="parity" property="parity"/>
        <result column="policy_attribute" property="policyAttribute"/>
        <result column="reproduction_certificate_code" property="reproductionCertificateCode"/>
        <result column="pregnancy_startdate" property="pregnancyStartdate"/>
        <result column="pregnancy_enddate" property="pregnancyEnddate"/>
        <result column="pregnancy_outcome" property="pregnancyOutcome"/>
        <result column="pregnancy_endplace" property="pregnancyEndplace"/>
        <result column="contraceptive_status" property="contraceptiveStatus"/>
        <result column="contraceptive_starttime" property="contraceptiveStarttime"/>
        <result column="contraceptive_agency" property="contraceptiveAgency"/>
        <result column="contraceptive_effect" property="contraceptiveEffect"/>
        <result column="end_date" property="endDate"/>
        <result column="end_contraceptive_institutions" property="endContraceptiveInstitutions"/>
        <result column="reasons_for_termination" property="reasonsForTermination"/>
    </resultMap>


    <select id="selectFertileWomanPage" resultMap="fertileWomanResultMap">
        select * from personnel_fertile_woman where is_deleted = 0
    </select>

</mapper>
