Blame view

ServiceMemberMappingMapper.xml 916 Bytes
涂亚平 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
<?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.subsidy.mapper.ServiceMemberMappingMapper">

    <select id="selectMembers" resultType="com.subsidy.vo.member.SelectMembersVO">
        SELECT
            t.id AS mappingId,
            t2.id,
            t2.user_name,
            t2.telephone,
            t2.id_card,
            t2.status,
            t2.account_name,
            t2.gender,
            t2.email,
            t2.account_name_en,
            t2.work_no,
            t2.induction_date
        FROM
            service_member_mapping t
            LEFT JOIN member t2 ON t.member_id = t2.id
        WHERE
            t.delete_date IS NULL
            AND t2.delete_date IS NULL
            AND t.service_id = 4
            AND t.company_id =#{companyId}
    </select>


</mapper>