23 lines
1.1 KiB
XML
23 lines
1.1 KiB
XML
|
|
<?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.engine.salary.mapper.auth.AuthMapper">
|
||
|
|
<resultMap id="BaseResultMap" type="com.engine.salary.entity.auth.dto.AuthDTO">
|
||
|
|
<result column="tax_agent_id" property="taxAgentId"/>
|
||
|
|
<collection property="empOpts" ofType="com.engine.salary.entity.auth.dto.EmpOpt">
|
||
|
|
<result column="employee_id" property="employeeId"/>
|
||
|
|
<collection ofType="java.lang.String" property="opt" />
|
||
|
|
</collection>
|
||
|
|
</resultMap>
|
||
|
|
|
||
|
|
<select id="getAuth" resultMap="BaseResultMap">
|
||
|
|
select role.tax_agent_id, d.employee_id, o.opt
|
||
|
|
from
|
||
|
|
hrsa_auth_role_emp emp
|
||
|
|
left join hrsa_auth_role role on emp.role_id = role.id
|
||
|
|
left join hrsa_auth_role_data d on emp.role_id = d.role_id
|
||
|
|
left join hrsa_auth_opt o on d.role_id = o.role_id
|
||
|
|
where emp.employee_id = 92 and emp.delete_type = 0 and role.delete_type = 0 and d.delete_type = 0 and o.delete_type = 0
|
||
|
|
</select>
|
||
|
|
|
||
|
|
|
||
|
|
</mapper>
|