<?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.DisablerMapper">

    <!-- 通用查询映射结果 -->
    <resultMap id="disablerResultMap" type="org.springblade.person.entity.Disabler">
        <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="living_conditions" property="livingConditions"/>
        <result column="guardian" property="guardian"/>
        <result column="guardian_phone" property="guardianPhone"/>
        <result column="income_source" property="incomeSource"/>
        <result column="health_care" property="healthCare"/>
        <result column="convalescence" property="convalescence"/>
        <result column="assistive_devices" property="assistiveDevices"/>
        <result column="hobby" property="hobby"/>
        <result column="addiction" property="addiction"/>
        <result column="ability" property="ability"/>
        <result column="social_skills" property="socialSkills"/>
        <result column="employment_needs" property="employmentNeeds"/>
        <result column="visit_plan" property="visitPlan"/>
        <result column="remark" property="remark"/>
    </resultMap>


    <select id="selectDisablerPage" resultMap="disablerResultMap">
        select * from personnel_disabler where is_deleted = 0
    </select>

</mapper>
