ServiceMemberMappingMapper.xml
916 Bytes
<?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>