<?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.jeeplus.human.enrollment.enrollmentRegistration.mapper.EnrollmentUserInfoAuditMapper">

    <sql id="Base_Column_List">
        a.id,
        a.create_by_id,
        a.create_time,
        a.update_by_id,
        a.update_time,
        a.del_flag,
        a.remarks,
        a.status,
        a.user_id,
        a.name,
        a.sex,
        a.age,
        a.birthday,
        a.join_industry_date,
        a.join_work_date,
        a.political_outlook,
        a.native_place,
        a.nation,
        a.marital_status,
        a.mobile_phone,
        a.id_card,
        a.home_address,
        a.permanent_address,
        a.email,
        a.process_definition_id,
        a.proc_ins_id,
        a.registration_id
    </sql>

    <select id="findDtos" resultType="com.jeeplus.sys.service.dto.WorkAttachmentInfoDTO">
        SELECT
            id,
            url,
            attachment_name AS `name`,
            create_by_id AS `by`,
            create_time,
            attachment_flag AS attachmentFlag
        FROM
            work_attachment
        WHERE
            del_flag = 0
          AND attachment_id = #{id}
    </select>


    <select id="findAuditInfoById" resultType="com.jeeplus.human.enrollment.enrollmentRegistration.domain.EnrollmentUserInfoAudit">
        SELECT
        <include refid="Base_Column_List"></include>
        FROM
        human_resources_enrollment_user_info_audit a
        WHERE
           id = #{id}
    </select>


</mapper>