|
|
|
@ -8,8 +8,14 @@ |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="getDataScopeList" resultType="long"> |
|
|
|
select t2.dept_id from sys_role_user t1, sys_role_data_scope t2 |
|
|
|
where t1.user_id = #{value} and t1.role_id = t2.role_id |
|
|
|
SELECT d.id |
|
|
|
FROM( |
|
|
|
select t2.dept_id |
|
|
|
from sys_role_user t1, sys_role_data_scope t2 |
|
|
|
where t1.user_id= #{value} |
|
|
|
and t1.role_id= t2.role_id) t |
|
|
|
LEFT JOIN `sys_dept` d on d.`id`= t.dept_id |
|
|
|
WHERE d.`del_flag`= 0 |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="getDataScopeDetailList" resultType="com.elink.esua.epdc.dto.DataScopeDeptList"> |
|
|
|
|